Commit b560e2a5 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-11-29 16:38:13 by simonmar]

Fix for heap profiling when selecting by lag/drag/void/use: I forgot
to make the final LdvCensusKillAll() call just before outputing the
census info.

Having tested this stuff on the compiler itself, I now declare it to
be working (famous last words!).
parent 32a89583
/* -----------------------------------------------------------------------------
* $Id: ProfHeap.c,v 1.31 2001/11/28 17:45:13 simonmar Exp $
* $Id: ProfHeap.c,v 1.32 2001/11/29 16:38:13 simonmar Exp $
*
* (c) The GHC Team, 1998-2000
*
......@@ -441,18 +441,10 @@ endHeapProfiling(void)
}
#endif
#ifdef PROFILING
// Note:
// We do not need to perform a major garbage collection because all the
// closures created since the last census will not affect the profiling
// statistics anyhow.
if (RtsFlags.ProfFlags.doHeapProfile == HEAP_BY_LDV)
LdvCensusKillAll();
#endif
#ifdef PROFILING
if (doingLDVProfiling()) {
nat t;
LdvCensusKillAll();
aggregateCensusInfo();
for (t = 1; t < era; t++) {
dumpCensus( &censuses[t] );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment