summaryrefslogtreecommitdiff
path: root/rts/Trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/Trace.c')
-rw-r--r--rts/Trace.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/rts/Trace.c b/rts/Trace.c
index de647f762b..c8a951a510 100644
--- a/rts/Trace.c
+++ b/rts/Trace.c
@@ -656,6 +656,7 @@ void traceHeapProfCostCentre(StgWord32 ccID,
}
}
+// This one is for .hp samples
void traceHeapProfSampleCostCentre(StgWord8 profile_id,
CostCentreStack *stack, StgWord residency)
{
@@ -663,6 +664,21 @@ void traceHeapProfSampleCostCentre(StgWord8 profile_id,
postHeapProfSampleCostCentre(profile_id, stack, residency);
}
}
+
+// This one is for .prof samples
+void traceProfSampleCostCentre(Capability *cap,
+ CostCentreStack *stack, StgWord tick)
+{
+ if (eventlog_enabled) {
+ postProfSampleCostCentre(cap, stack, tick);
+ }
+}
+void traceProfBegin(void)
+{
+ if (eventlog_enabled) {
+ postProfBegin();
+ }
+}
#endif
#if defined(DEBUG)