From e989066d6f75ce92a7875ce4e5a7eb2329a6640a Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 23 Jan 2003 16:39:30 +0000 Subject: [PATCH] [project @ 2003-01-23 16:39:30 by simonmar] Fix compilation with DEBUG --- ghc/rts/ProfHeap.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ghc/rts/ProfHeap.c b/ghc/rts/ProfHeap.c index 675acd6..963fdef 100644 --- a/ghc/rts/ProfHeap.c +++ b/ghc/rts/ProfHeap.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: ProfHeap.c,v 1.41 2003/01/23 12:13:12 simonmar Exp $ + * $Id: ProfHeap.c,v 1.42 2003/01/23 16:39:30 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -894,6 +894,10 @@ heapCensusChain( Census *census, bdescr *bd ) case TSO: prim = rtsTrue; +#ifdef DEBUG_HEAP_PROF + size = tso_sizeW((StgTSO *)p); + break; +#else if (RtsFlags.ProfFlags.includeTSOs) { size = tso_sizeW((StgTSO *)p); break; @@ -902,7 +906,8 @@ heapCensusChain( Census *census, bdescr *bd ) p += tso_sizeW((StgTSO *)p); continue; } - +#endif + default: barf("heapCensus"); } -- 1.7.10.4