Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Michael Sloan
GHC
Commits
ab9e986e
Commit
ab9e986e
authored
Mar 26, 2018
by
Ben Gamari
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rts: Fix profiled build after D4529
parent
d1fb5831
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
rts/Stats.c
rts/Stats.c
+4
-4
rts/Stats.h
rts/Stats.h
+2
-0
No files found.
rts/Stats.c
View file @
ab9e986e
...
...
@@ -738,8 +738,8 @@ static void report_summary(const RTSSummaryStats* sum)
#if defined(PROFILING)
statsPrintf
(
" RP time %7.3fs (%7.3fs elapsed)
\n
"
,
TimeToSecondsDbl
(
sum
->
r
c
_cpu_ns
),
TimeToSecondsDbl
(
sum
->
r
c
_elapsed_ns
));
TimeToSecondsDbl
(
sum
->
r
p
_cpu_ns
),
TimeToSecondsDbl
(
sum
->
r
p
_elapsed_ns
));
statsPrintf
(
" PROF time %7.3fs (%7.3fs elapsed)
\n
"
,
TimeToSecondsDbl
(
sum
->
hc_cpu_ns
),
TimeToSecondsDbl
(
sum
->
hc_elapsed_ns
));
...
...
@@ -901,8 +901,8 @@ static void report_machine_readable (const RTSSummaryStats * sum)
#if defined(PROFILING)
MR_STAT
(
"rp_cpu_seconds"
,
"f"
,
TimeToSecondsDbl
(
sum
->
rp_cpu_ns
));
MR_STAT
(
"rp_wall_seconds"
,
"f"
,
TimeToSecondsDbl
(
sum
->
rp_elapsed_ns
));
MR_STAT
(
"hc_cpu_seconds"
,
"f"
,
TimeToSecondsDbl
(
sum
->
h
p
_cpu_ns
));
MR_STAT
(
"hc_wall_seconds"
,
"f"
,
TimeToSecondsDbl
(
sum
->
h
p
_elapsed_ns
));
MR_STAT
(
"hc_cpu_seconds"
,
"f"
,
TimeToSecondsDbl
(
sum
->
h
c
_cpu_ns
));
MR_STAT
(
"hc_wall_seconds"
,
"f"
,
TimeToSecondsDbl
(
sum
->
h
c
_elapsed_ns
));
#endif
MR_STAT
(
"total_cpu_seconds"
,
"f"
,
TimeToSecondsDbl
(
stats
.
cpu_ns
));
MR_STAT
(
"total_wall_seconds"
,
"f"
,
...
...
rts/Stats.h
View file @
ab9e986e
...
...
@@ -9,6 +9,8 @@
#pragma once
#include "GetTime.h"
#include "sm/GC.h"
#include "Sparks.h"
#include "BeginPrivate.h"
...
...
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