Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-orbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Katerina Roukounaki
cloud-orbit
Commits
fba696a6
Commit
fba696a6
authored
Nov 14, 2014
by
Aggelos Giantsios
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename OrbitUtils to WorkerAux for better context
parent
eda5fcc6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
Sequential.hs
Sequential.hs
+3
-1
Types.hs
Types.hs
+14
-1
WorkerAux.hs
WorkerAux.hs
+23
-0
No files found.
Sequential.hs
View file @
fba696a6
...
@@ -21,7 +21,9 @@ import Table
...
@@ -21,7 +21,9 @@ import Table
,
new
,
new
,
to_list
,
to_list
)
)
import
OrbitUtils
(
now
)
import
WorkerAux
(
now
)
import
Types
import
Types
(
Generator
(
Generator
,
Freq
,
Freq
...
...
Types.hs
View file @
fba696a6
--
--
-- orbit-int types
-- orbit-int types
--
--
module
Types
(
Generator
module
Types
(
Ct
(
..
)
,
Generator
,
Freq
,
Freq
,
Host
,
Host
,
MaybeHosts
(
..
)
,
MaybeHosts
(
..
)
...
@@ -24,3 +25,15 @@ type Generator = Vertex -> Vertex
...
@@ -24,3 +25,15 @@ type Generator = Vertex -> Vertex
type
Host
=
(
NodeId
,
Int
,
Int
,
Int
)
-- Node, Procs, TableSize, IdleTimeout
type
Host
=
(
NodeId
,
Int
,
Int
,
Int
)
-- Node, Procs, TableSize, IdleTimeout
data
MaybeHosts
=
Seq
Int
data
MaybeHosts
=
Seq
Int
|
Par
[
Host
]
|
Par
[
Host
]
-- counters/timers record
data
Ct
=
Ct
{
verts_recvd
::
Int
-- #vertices received by this server so far
,
credit_retd
::
Int
-- #times server has returned credit to master
,
min_atomic_credit
::
Int
-- minimal atomic credit received so far
,
last_event
::
Int
-- time stamp [ms] of most recent event
,
init_idle
::
Int
-- idle time [ms] between init recv first vertex
,
tail_idle
::
Int
-- idle time [ms] between send last vertex and dump
,
max_idle
::
Int
-- max idle [ms] time between vertices
}
OrbitUtils
.hs
→
WorkerAux
.hs
View file @
fba696a6
--
--
-- orbit-int
orbitutils
-- orbit-int
workeraux
--
--
module
OrbitUtils
(
now
)
where
module
WorkerAux
(
now
)
where
import
Types
(
Ct
(
..
)
)
defaultCt
=
Ct
{
verts_recvd
=
0
,
credit_retd
=
0
,
min_atomic_credit
=
0
,
last_event
=
0
--master:now()
,
init_idle
=
-
1
,
tail_idle
=
-
1
,
max_idle
=
-
1
}
-- current wall clock time (in milliseconds since start of RTS)
-- current wall clock time (in milliseconds since start of RTS)
-- FIXME get current wall clock time
-- FIXME get current wall clock time
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment