projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up for code conventions & add some comment
[ghc-hetmet.git]
/
rts
/
ProfHeap.c
diff --git
a/rts/ProfHeap.c
b/rts/ProfHeap.c
index
76a6b33
..
e8966ec
100644
(file)
--- a/
rts/ProfHeap.c
+++ b/
rts/ProfHeap.c
@@
-523,12
+523,19
@@
endHeapProfiling(void)
}
#endif
}
#endif
- {
+#ifdef PROFILING
+ if (doingLDVProfiling()) {
nat t;
nat t;
- for (t = 0; t <= era; t++) {
+ for (t = 1; t <= era; t++) {
freeEra( &censuses[t] );
}
freeEra( &censuses[t] );
}
+ } else {
+ freeEra( &censuses[0] );
}
}
+#else
+ freeEra( &censuses[0] );
+#endif
+
stgFree(censuses);
seconds = mut_user_time();
stgFree(censuses);
seconds = mut_user_time();