diff options
Diffstat (limited to 'rts/Trace.h')
-rw-r--r-- | rts/Trace.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rts/Trace.h b/rts/Trace.h index a72248ab30..74b960ce31 100644 --- a/rts/Trace.h +++ b/rts/Trace.h @@ -206,6 +206,11 @@ void traceUserMsg(Capability *cap, char *msg); void traceUserMarker(Capability *cap, char *msg); /* + * A binary message or event emitted by the program + */ +void traceUserBinaryMsg(Capability *cap, uint8_t *msg, size_t size); + +/* * An event to record a Haskell thread's label/name * Used by GHC.Conc.labelThread */ @@ -295,6 +300,8 @@ void traceHeapProfSampleCostCentre(StgWord8 profile_id, CostCentreStack *stack, StgWord residency); #endif /* PROFILING */ +void flushTrace(void); + #else /* !TRACING */ #define traceSchedEvent(cap, tag, tso, other) /* nothing */ @@ -331,6 +338,8 @@ void traceHeapProfSampleCostCentre(StgWord8 profile_id, #define traceHeapProfSampleCostCentre(profile_id, stack, residency) /* nothing */ #define traceHeapProfSampleString(profile_id, label, residency) /* nothing */ +#define flushTrace() /* nothing */ + #endif /* TRACING */ // If DTRACE is enabled, but neither DEBUG nor TRACING, we need a C land |