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,316
Issues
4,316
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
73523d2f
Commit
73523d2f
authored
Jul 19, 2011
by
Edward Z. Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename avg_residency to less misleading cumulative_residency.
Signed-off-by:
Edward Z. Yang
<
ezyang@mit.edu
>
parent
ee9c7314
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rts/Stats.c
rts/Stats.c
+4
-4
No files found.
rts/Stats.c
View file @
73523d2f
...
...
@@ -57,7 +57,7 @@ static Ticks HCe_start_time, HCe_tot_time = 0; // heap census prof elap time
#endif
static
lnat
max_residency
=
0
;
// in words; for stats only
static
lnat
avg_residency
=
0
;
static
lnat
cumulative_residency
=
0
;
static
lnat
residency_samples
=
0
;
// for stats only
static
lnat
max_slop
=
0
;
...
...
@@ -151,7 +151,7 @@ initStats0(void)
#endif
max_residency
=
0
;
avg
_residency
=
0
;
cumulative
_residency
=
0
;
residency_samples
=
0
;
max_slop
=
0
;
...
...
@@ -368,7 +368,7 @@ stat_endGC (gc_thread *gct,
max_residency
=
live
;
}
residency_samples
++
;
avg
_residency
+=
live
;
cumulative
_residency
+=
live
;
}
if
(
slop
>
max_slop
)
max_slop
=
slop
;
...
...
@@ -745,7 +745,7 @@ stat_exit(int alloc)
statsPrintf
(
fmt2
,
total_collections
,
residency_samples
==
0
?
0
:
avg
_residency
*
sizeof
(
W_
)
/
residency_samples
,
cumulative
_residency
*
sizeof
(
W_
)
/
residency_samples
,
max_residency
*
sizeof
(
W_
),
residency_samples
,
(
unsigned
long
)(
peak_mblocks_allocated
*
MBLOCK_SIZE
/
(
1024L
*
1024L
)),
...
...
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