diff options
author | Simon Marlow <marlowsd@gmail.com> | 2010-09-14 13:50:30 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2010-09-14 13:50:30 +0000 |
commit | ac834f4821d2189a335d289a8d36e5fa70f1512d (patch) | |
tree | cf38aa7f83ef802c550f1548cd558c4972912ddb /rts/Stats.c | |
parent | 6c5637803d14fd1035c38235123b4c112d1c2b00 (diff) | |
download | haskell-ac834f4821d2189a335d289a8d36e5fa70f1512d.tar.gz |
fix +RTS -S output: use peak_mblocks_allocated, now that mblocks can be freed
Diffstat (limited to 'rts/Stats.c')
-rw-r--r-- | rts/Stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/Stats.c b/rts/Stats.c index 5ffdcb9139..d7d45a413b 100644 --- a/rts/Stats.c +++ b/rts/Stats.c @@ -589,8 +589,8 @@ stat_exit(int alloc) statsPrintf("%16s bytes maximum slop\n", temp); statsPrintf("%16ld MB total memory in use (%ld MB lost due to fragmentation)\n\n", - mblocks_allocated * MBLOCK_SIZE_W / (1024 * 1024 / sizeof(W_)), - (mblocks_allocated * MBLOCK_SIZE_W - hw_alloc_blocks * BLOCK_SIZE_W) / (1024 * 1024 / sizeof(W_))); + peak_mblocks_allocated * MBLOCK_SIZE_W / (1024 * 1024 / sizeof(W_)), + (peak_mblocks_allocated * MBLOCK_SIZE_W - hw_alloc_blocks * BLOCK_SIZE_W) / (1024 * 1024 / sizeof(W_))); /* Print garbage collections in each gen */ for (g = 0; g < RtsFlags.GcFlags.generations; g++) { |