Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
377
Merge Requests
377
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
9213fc96
Commit
9213fc96
authored
Aug 06, 2011
by
Edward Z. Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also include basic time statistics in GCStats.
Signed-off-by:
Edward Z. Yang
<
ezyang@mit.edu
>
parent
e17c1568
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
includes/rts/storage/GC.h
includes/rts/storage/GC.h
+2
-0
rts/Stats.c
rts/Stats.c
+3
-0
No files found.
includes/rts/storage/GC.h
View file @
9213fc96
...
...
@@ -198,6 +198,8 @@ typedef struct _GCStats {
StgDouble
mutator_wall_seconds
;
StgDouble
gc_cpu_seconds
;
StgDouble
gc_wall_seconds
;
StgDouble
cpu_seconds
;
StgDouble
wall_seconds
;
}
GCStats
;
void
getGCStats
(
GCStats
*
s
);
...
...
rts/Stats.c
View file @
9213fc96
...
...
@@ -891,6 +891,9 @@ extern void getGCStats( GCStats *s )
s
->
mutator_wall_seconds
=
TICK_TO_DBL
(
current_elapsed
-
end_init_elapsed
-
gc_elapsed
);
s
->
gc_cpu_seconds
=
TICK_TO_DBL
(
gc_cpu
);
s
->
gc_wall_seconds
=
TICK_TO_DBL
(
gc_elapsed
);
/* EZY: Being consistent with incremental output, but maybe should also discount init */
s
->
cpu_seconds
=
TICK_TO_DBL
(
current_cpu
);
s
->
wall_seconds
=
TICK_TO_DBL
(
current_elapsed
-
end_init_elapsed
);
s
->
par_avg_bytes_copied
=
GC_par_avg_copied
*
(
StgWord64
)
sizeof
(
W_
);
s
->
par_max_bytes_copied
=
GC_par_max_copied
*
(
StgWord64
)
sizeof
(
W_
);
}
...
...
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