rts: Fix profiled build after D4529
authorBen Gamari <ben@smart-cactus.org>
Mon, 26 Mar 2018 20:34:06 +0000 (16:34 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 27 Mar 2018 13:53:10 +0000 (09:53 -0400)
rts/Stats.c
rts/Stats.h

index 457f50d..3efa6cc 100644 (file)
@@ -738,8 +738,8 @@ static void report_summary(const RTSSummaryStats* sum)
 
 #if defined(PROFILING)
     statsPrintf("  RP      time  %7.3fs  (%7.3fs elapsed)\n",
-                TimeToSecondsDbl(sum->rc_cpu_ns),
-                TimeToSecondsDbl(sum->rc_elapsed_ns));
+                TimeToSecondsDbl(sum->rp_cpu_ns),
+                TimeToSecondsDbl(sum->rp_elapsed_ns));
     statsPrintf("  PROF    time  %7.3fs  (%7.3fs elapsed)\n",
                 TimeToSecondsDbl(sum->hc_cpu_ns),
                 TimeToSecondsDbl(sum->hc_elapsed_ns));
@@ -901,8 +901,8 @@ static void report_machine_readable (const RTSSummaryStats * sum)
 #if defined(PROFILING)
     MR_STAT("rp_cpu_seconds", "f", TimeToSecondsDbl(sum->rp_cpu_ns));
     MR_STAT("rp_wall_seconds", "f", TimeToSecondsDbl(sum->rp_elapsed_ns));
-    MR_STAT("hc_cpu_seconds", "f", TimeToSecondsDbl(sum->hp_cpu_ns));
-    MR_STAT("hc_wall_seconds", "f", TimeToSecondsDbl(sum->hp_elapsed_ns));
+    MR_STAT("hc_cpu_seconds", "f", TimeToSecondsDbl(sum->hc_cpu_ns));
+    MR_STAT("hc_wall_seconds", "f", TimeToSecondsDbl(sum->hc_elapsed_ns));
 #endif
     MR_STAT("total_cpu_seconds", "f", TimeToSecondsDbl(stats.cpu_ns));
     MR_STAT("total_wall_seconds", "f",
index 7cd49fc..fbcca11 100644 (file)
@@ -9,6 +9,8 @@
 #pragma once
 
 #include "GetTime.h"
+#include "sm/GC.h"
+#include "Sparks.h"
 
 #include "BeginPrivate.h"