summaryrefslogtreecommitdiff
path: root/src/vm/eventpipe.h
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2017-05-25 12:28:24 -0700
committerGitHub <noreply@github.com>2017-05-25 12:28:24 -0700
commit7ca2692405f255ce4a87d2c3ec263d938cf274fc (patch)
treede684f25960d65b51b26797cd5b3f1c4250ae704 /src/vm/eventpipe.h
parented1342ba2409cd8bc736380017ee39eaa1701cf2 (diff)
downloadcoreclr-7ca2692405f255ce4a87d2c3ec263d938cf274fc.tar.gz
coreclr-7ca2692405f255ce4a87d2c3ec263d938cf274fc.tar.bz2
coreclr-7ca2692405f255ce4a87d2c3ec263d938cf274fc.zip
Implement Activity ID / Related Activity ID for EventSources Writing to EventPipe (#11904)
* Implement thread-local storage of activity ids. * Plumb the activity id and related activity id into the trace file.
Diffstat (limited to 'src/vm/eventpipe.h')
-rw-r--r--src/vm/eventpipe.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vm/eventpipe.h b/src/vm/eventpipe.h
index 0860080d48..a69e1ba840 100644
--- a/src/vm/eventpipe.h
+++ b/src/vm/eventpipe.h
@@ -188,7 +188,7 @@ class EventPipe
// Write out an event.
// Data is written as a serialized blob matching the ETW serialization conventions.
- static void WriteEvent(EventPipeEvent &event, BYTE *pData, unsigned int length);
+ static void WriteEvent(EventPipeEvent &event, BYTE *pData, unsigned int length, LPCGUID pActivityId = NULL, LPCGUID pRelatedActivityId = NULL);
// Write out a sample profile event.
static void WriteSampleProfileEvent(Thread *pSamplingThread, EventPipeEvent *pEvent, Thread *pTargetThread, StackContents &stackContents, BYTE *pData = NULL, unsigned int length = 0);
@@ -305,7 +305,8 @@ public:
INT_PTR eventHandle,
unsigned int eventID,
void *pData,
- unsigned int length);
+ unsigned int length,
+ LPCGUID pActivityId, LPCGUID pRelatedActivityId);
};
#endif // FEATURE_PERFTRACING