summaryrefslogtreecommitdiff
path: root/rts/LdvProfile.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-12-07 09:23:14 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-12-07 09:23:14 +0000
commit0f3dd21e3e1d3ce8038e6dd85834decbe4ee3dca (patch)
treede33cdb56489fb2e3aaaddab84e06d7f580863ef /rts/LdvProfile.c
parent1cf8d965aeb55701efa47dace761c4d673c06987 (diff)
downloadhaskell-0f3dd21e3e1d3ce8038e6dd85834decbe4ee3dca.tar.gz
Fix profiling build
Diffstat (limited to 'rts/LdvProfile.c')
-rw-r--r--rts/LdvProfile.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/rts/LdvProfile.c b/rts/LdvProfile.c
index a1eef17ef1..c2e7d7ec5a 100644
--- a/rts/LdvProfile.c
+++ b/rts/LdvProfile.c
@@ -259,7 +259,7 @@ processChainForDead( bdescr *bd )
void
LdvCensusForDead( nat N )
{
- nat g, s;
+ nat g;
// ldvTime == 0 means that LDV profiling is currently turned off.
if (era == 0)
@@ -271,16 +271,11 @@ LdvCensusForDead( nat N )
//
barf("Lag/Drag/Void profiling not supported with -G1");
} else {
- for (g = 0; g <= N; g++)
- for (s = 0; s < generations[g].n_steps; s++) {
- if (g == 0 && s == 0) {
- processNurseryForDead();
- processChainForDead(generations[g].steps[s].large_objects);
- } else{
- processHeapForDead(generations[g].steps[s].old_blocks);
- processChainForDead(generations[g].steps[s].large_objects);
- }
- }
+ processNurseryForDead();
+ for (g = 0; g <= N; g++) {
+ processHeapForDead(generations[g].old_blocks);
+ processChainForDead(generations[g].large_objects);
+ }
}
}