summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-09-16 13:38:14 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-09-16 13:38:14 +0100
commitd60c977e7d92a11a1750cea8693fd386d3a7104e (patch)
tree73bf24d8d8b95424f8df087f0ba6b37ccc4db68d
parent4f2d8fd6c3ea186541fa2ddbe99f2167c83c0b0b (diff)
downloadhaskell-d60c977e7d92a11a1750cea8693fd386d3a7104e.tar.gz
debugging code
-rw-r--r--rts/Proftimer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/Proftimer.c b/rts/Proftimer.c
index dfcc709625..82838184b7 100644
--- a/rts/Proftimer.c
+++ b/rts/Proftimer.c
@@ -65,11 +65,13 @@ initProfTimer( void )
startHeapProfTimer();
}
+nat total_ticks = 0;
void
handleProfTick(void)
{
#ifdef PROFILING
+ total_ticks++;
if (do_prof_ticks) {
CCCS->time_ticks++;
}