fix a couple of bugs in markSparkQueue (#799)
[ghc-hetmet.git] / rts / Stats.c
index 28d09bd..ec8d583 100644 (file)
@@ -75,6 +75,11 @@ Ticks stat_getElapsedGCTime(void)
     return GCe_tot_time;
 }
 
+Ticks stat_getElapsedTime(void)
+{
+    return getProcessElapsedTime() - ElapsedTimeStart;
+}
+
 /* mut_user_time_during_GC() and mut_user_time()
  *
  * The former function can be used to get the current mutator time
@@ -578,7 +583,7 @@ statDescribeGens(void)
       if (s != 0) {
        debugBelch("%36s","");
       }
-      debugBelch("%6d %8d %8d %8d\n", s, step->n_blocks,
+      debugBelch("%6d %8d %8ld %8d\n", s, step->n_blocks,
              live, lge);
     }
   }