Don't subtract HC_tot_time when calculating mut_user_time
authorIan Lynagh <igloo@earth.li>
Sun, 24 Jul 2011 12:14:20 +0000 (13:14 +0100)
committerIan Lynagh <igloo@earth.li>
Sun, 24 Jul 2011 12:14:20 +0000 (13:14 +0100)
Heap census now happens during GC, so that time is already accounted
for in GC_tot_cpu.

rts/Stats.c

index 3aeb531..cdb42a2 100644 (file)
@@ -86,7 +86,7 @@ Ticks stat_getElapsedTime(void)
 double
 mut_user_time_until( Ticks t )
 {
-    return TICK_TO_DBL(t - GC_tot_cpu - PROF_VAL(RP_tot_time + HC_tot_time));
+    return TICK_TO_DBL(t - GC_tot_cpu - PROF_VAL(RP_tot_time));
 }
 
 double
@@ -105,13 +105,13 @@ mut_user_time( void )
 double
 mut_user_time_during_RP( void )
 {
-  return TICK_TO_DBL(RP_start_time - GC_tot_cpu - RP_tot_time - HC_tot_time);
+  return TICK_TO_DBL(RP_start_time - GC_tot_cpu - RP_tot_time);
 }
 
 double
 mut_user_time_during_heap_census( void )
 {
-  return TICK_TO_DBL(HC_start_time - GC_tot_cpu - RP_tot_time - HC_tot_time);
+  return TICK_TO_DBL(HC_start_time - GC_tot_cpu - RP_tot_time);
 }
 #endif /* PROFILING */