summaryrefslogtreecommitdiff
path: root/includes/rts/EventLogFormat.h
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2012-10-15 00:52:32 +0100
committerDuncan Coutts <duncan@well-typed.com>2012-10-15 12:28:29 +0100
commita609027da31c7c9103d8b9741ba3fc6807b7b7b9 (patch)
treed0e5340b10ef2d2e3935c3d682e3b35e4737d1ac /includes/rts/EventLogFormat.h
parent8af2d940c786136a29a061fa9542e39f65e6d6fb (diff)
downloadhaskell-a609027da31c7c9103d8b9741ba3fc6807b7b7b9.tar.gz
Add a new traceMarker# primop for use in profiling output
In time-based profiling visualisations (e.g. heap profiles and ThreadScope) it would be useful to be able to mark particular points in the execution and have those points in time marked in the visualisation. The traceMarker# primop currently emits an event into the eventlog. In principle it could be extended to do something in the heap profiling too.
Diffstat (limited to 'includes/rts/EventLogFormat.h')
-rw-r--r--includes/rts/EventLogFormat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/rts/EventLogFormat.h b/includes/rts/EventLogFormat.h
index 82d3f683cc..e08a44996f 100644
--- a/includes/rts/EventLogFormat.h
+++ b/includes/rts/EventLogFormat.h
@@ -161,8 +161,8 @@
#define EVENT_TASK_CREATE 55 /* (taskID, cap, tid) */
#define EVENT_TASK_MIGRATE 56 /* (taskID, cap, new_cap) */
#define EVENT_TASK_DELETE 57 /* (taskID) */
-
-/* Range 58 - 59 is available for new GHC and common events. */
+#define EVENT_USER_MARKER 58 /* (marker_name) */
+/* Range 59 - 59 is available for new GHC and common events. */
/* Range 60 - 80 is used by eden for parallel tracing
* see http://www.mathematik.uni-marburg.de/~eden/
@@ -177,7 +177,7 @@
* ranges higher than this are reserved but not currently emitted by ghc.
* This must match the size of the EventDesc[] array in EventLog.c
*/
-#define NUM_GHC_EVENT_TAGS 58
+#define NUM_GHC_EVENT_TAGS 59
#if 0 /* DEPRECATED EVENTS: */
/* we don't actually need to record the thread, it's implicit */