summaryrefslogtreecommitdiff
path: root/rts/ProfHeap.c
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2019-07-18 03:16:30 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-17 11:21:11 -0500
commit3eac10ae2200a379cf9d90965cf6ecf45f866972 (patch)
tree7a07318122970497bb313911364df0e6d12db75f /rts/ProfHeap.c
parentfc4bd5567284744d887ef4c5d8262732096d44ee (diff)
downloadhaskell-3eac10ae2200a379cf9d90965cf6ecf45f866972.tar.gz
rts: ProfHeap: Merge some redundant ifdefs
Diffstat (limited to 'rts/ProfHeap.c')
-rw-r--r--rts/ProfHeap.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/rts/ProfHeap.c b/rts/ProfHeap.c
index 336013f255..acbfeea01f 100644
--- a/rts/ProfHeap.c
+++ b/rts/ProfHeap.c
@@ -577,23 +577,14 @@ endHeapProfiling(void)
#if defined(PROFILING)
if (doingRetainerProfiling()) {
endRetainerProfiling();
- }
-#endif
-
-#if defined(PROFILING)
- if (doingLDVProfiling()) {
+ } else if (doingLDVProfiling()) {
uint32_t t;
LdvCensusKillAll();
aggregateCensusInfo();
for (t = 1; t < era; t++) {
dumpCensus( &censuses[t] );
}
- }
-#endif
-#if defined(PROFILING)
- if (doingLDVProfiling()) {
- uint32_t t;
if (RtsFlags.ProfFlags.bioSelector != NULL) {
for (t = 1; t <= era; t++) {
freeEra( &censuses[t] );