diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2019-07-02 10:38:13 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-09-17 19:21:10 -0400 |
commit | ae4415b9487d24942aa0e91052d4b897a3cf2f2e (patch) | |
tree | 7114c5e3418cf480339f69313f8960adeb12e05a /rts/Trace.h | |
parent | 7915afc6bb9539a4534db99aeb6616a6d145918a (diff) | |
download | haskell-ae4415b9487d24942aa0e91052d4b897a3cf2f2e.tar.gz |
eventlog: Add biographical and retainer profiling traces
This patch adds a new eventlog event which indicates the start of
a biographical profiler sample. These are different to normal events as
they also include the timestamp of when the census took place. This is
because the LDV profiler only emits samples at the end of the run.
Now all the different profiling modes emit consumable events to the
eventlog.
Diffstat (limited to 'rts/Trace.h')
-rw-r--r-- | rts/Trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/Trace.h b/rts/Trace.h index 17e3dc7040..9985adc52f 100644 --- a/rts/Trace.h +++ b/rts/Trace.h @@ -288,6 +288,7 @@ void traceTaskDelete_ (Task *task); void traceHeapProfBegin(StgWord8 profile_id); void traceHeapProfSampleBegin(StgInt era); +void traceHeapBioProfSampleBegin(StgInt era, StgWord64 time); void traceHeapProfSampleEnd(StgInt era); void traceHeapProfSampleString(StgWord8 profile_id, const char *label, StgWord residency); @@ -336,6 +337,7 @@ void flushTrace(void); #define traceHeapProfBegin(profile_id) /* nothing */ #define traceHeapProfCostCentre(ccID, label, module, srcloc, is_caf) /* nothing */ #define traceHeapProfSampleBegin(era) /* nothing */ +#define traceHeapBioProfSampleBegin(era, time) /* nothing */ #define traceHeapProfSampleEnd(era) /* nothing */ #define traceHeapProfSampleCostCentre(profile_id, stack, residency) /* nothing */ #define traceHeapProfSampleString(profile_id, label, residency) /* nothing */ |