diff options
author | Edward Z. Yang <ezyang@mit.edu> | 2011-07-19 11:08:16 -0400 |
---|---|---|
committer | Edward Z. Yang <ezyang@mit.edu> | 2011-07-24 22:18:14 -0400 |
commit | 73523d2f7e24937e8aa494200bcb65c1101bba99 (patch) | |
tree | ae8aac5507ed71c92146b0da6df1fce7f5a0b82f /rts/Stats.c | |
parent | ee9c7314ff9f83b6694b06396988a373594e4c04 (diff) | |
download | haskell-73523d2f7e24937e8aa494200bcb65c1101bba99.tar.gz |
Rename avg_residency to less misleading cumulative_residency.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Diffstat (limited to 'rts/Stats.c')
-rw-r--r-- | rts/Stats.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/Stats.c b/rts/Stats.c index cdb42a2b61..c071ec0202 100644 --- a/rts/Stats.c +++ b/rts/Stats.c @@ -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)), |