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,321
Issues
4,321
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
387
Merge Requests
387
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
d710c3a4
Commit
d710c3a4
authored
Sep 13, 2010
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't include GC time in heap profiles (
#4225
)
parent
5e195173
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
rts/Stats.c
rts/Stats.c
+11
-11
No files found.
rts/Stats.c
View file @
d710c3a4
...
...
@@ -258,7 +258,8 @@ stat_startExit(void)
PROF_VAL
(
RPe_tot_time
+
HCe_tot_time
)
-
InitElapsedStamp
;
if
(
MutElapsedTime
<
0
)
{
MutElapsedTime
=
0
;
}
/* sometimes -0.00 */
MutUserTime
=
user
-
GC_tot_time
-
PROF_VAL
(
RP_tot_time
+
HC_tot_time
)
-
InitUserTime
;
MutUserTime
=
user
-
GC_tot_time
-
PROF_VAL
(
RP_tot_time
+
HC_tot_time
)
-
InitUserTime
;
if
(
MutUserTime
<
0
)
{
MutUserTime
=
0
;
}
#if USE_PAPI
...
...
@@ -314,15 +315,11 @@ stat_startGC(void)
}
}
#if defined(PROFILING) || defined(DEBUG)
GC_start_time
=
getProcessCPUTime
();
// needed in mut_user_time_during_GC()
#endif
if
(
RtsFlags
.
GcFlags
.
giveStats
!=
NO_GC_STATS
)
{
#if !defined(PROFILING) && !defined(DEBUG)
GC_start_time
=
getProcessCPUTime
();
#endif
GCe_start_time
=
getProcessElapsedTime
();
if
(
RtsFlags
.
GcFlags
.
giveStats
!=
NO_GC_STATS
||
RtsFlags
.
ProfFlags
.
doHeapProfile
)
// heap profiling needs GC_tot_time
{
getProcessTimes
(
&
GC_start_time
,
&
GCe_start_time
);
if
(
RtsFlags
.
GcFlags
.
giveStats
)
{
GC_start_faults
=
getPageFaults
();
}
...
...
@@ -346,7 +343,10 @@ void
stat_endGC
(
lnat
alloc
,
lnat
live
,
lnat
copied
,
lnat
gen
,
lnat
max_copied
,
lnat
avg_copied
,
lnat
slop
)
{
if
(
RtsFlags
.
GcFlags
.
giveStats
!=
NO_GC_STATS
)
{
if
(
RtsFlags
.
GcFlags
.
giveStats
!=
NO_GC_STATS
||
RtsFlags
.
ProfFlags
.
doHeapProfile
)
// heap profiling needs GC_tot_time
{
Ticks
time
,
etime
,
gc_time
,
gc_etime
;
getProcessTimes
(
&
time
,
&
etime
);
...
...
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