projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2004-08-31 09:48:28 by simonmar]
[ghc-hetmet.git]
/
ghc
/
rts
/
Proftimer.c
diff --git
a/ghc/rts/Proftimer.c
b/ghc/rts/Proftimer.c
index
a34752e
..
dc36df9
100644
(file)
--- a/
ghc/rts/Proftimer.c
+++ b/
ghc/rts/Proftimer.c
@@
-1,5
+1,5
@@
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: Proftimer.c,v 1.9 2001/12/12 14:31:43 simonmar Exp $
+ * $Id: Proftimer.c,v 1.12 2003/02/22 04:51:52 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
*
* (c) The GHC Team, 1998-1999
*
@@
-11,9
+11,11
@@
#include "PosixSource.h"
#include "PosixSource.h"
+#include <stdio.h>
+
#include "Rts.h"
#include "Profiling.h"
#include "Rts.h"
#include "Profiling.h"
-#include "Itimer.h"
+#include "Timer.h"
#include "Proftimer.h"
#include "RtsFlags.h"
#include "Proftimer.h"
#include "RtsFlags.h"
@@
-47,7
+49,8
@@
stopHeapProfTimer( void )
void
startHeapProfTimer( void )
{
void
startHeapProfTimer( void )
{
- if (RtsFlags.ProfFlags.doHeapProfile) {
+ if (RtsFlags.ProfFlags.doHeapProfile &&
+ RtsFlags.ProfFlags.profileIntervalTicks > 0) {
do_heap_prof_ticks = rtsTrue;
}
}
do_heap_prof_ticks = rtsTrue;
}
}