Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Software
CoPaR
Commits
b8a8742c
Commit
b8a8742c
authored
Nov 11, 2022
by
Silas Kuder
Browse files
stats show maximum usage now
parent
0c5417c7
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Copar/Distributed/Stats.hs
View file @
b8a8742c
...
...
@@ -50,6 +50,7 @@ writeDistributedStats statFileName stats = do
type
AccumStat
a
=
[
a
]
avg
::
(
Integral
a
,
Foldable
t
)
=>
t
a
->
a
avg
values
=
sum
values
`
div
`
fromIntegral
(
length
values
)
...
...
@@ -64,10 +65,11 @@ maxDeviatonFromAvg (sort -> svalues) =
formatAccum
::
(
Show
a
,
Integral
a
)
=>
AccumStat
a
->
String
formatAccum
values
=
printf
"[Average %s (Max derivation %s) || Median %s]
\n
computed from %s"
printf
"[Average %s (Max derivation %s) || Median
%s || Maximum
%s]
\n
computed from %s"
(
show
$
avg
values
)
(
show
$
maxDeviatonFromAvg
values
)
(
show
$
med
values
)
(
show
$
maximum
values
)
(
show
values
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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