diff options
author | Brian Robbins <brianrob@microsoft.com> | 2017-05-25 12:28:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-25 12:28:24 -0700 |
commit | 7ca2692405f255ce4a87d2c3ec263d938cf274fc (patch) | |
tree | de684f25960d65b51b26797cd5b3f1c4250ae704 /src/vm/eventpipebuffer.cpp | |
parent | ed1342ba2409cd8bc736380017ee39eaa1701cf2 (diff) | |
download | coreclr-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/eventpipebuffer.cpp')
-rw-r--r-- | src/vm/eventpipebuffer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vm/eventpipebuffer.cpp b/src/vm/eventpipebuffer.cpp index ed1c5479bb..00652c9fac 100644 --- a/src/vm/eventpipebuffer.cpp +++ b/src/vm/eventpipebuffer.cpp @@ -46,7 +46,7 @@ EventPipeBuffer::~EventPipeBuffer() } } -bool EventPipeBuffer::WriteEvent(Thread *pThread, EventPipeEvent &event, BYTE *pData, unsigned int dataLength, StackContents *pStack) +bool EventPipeBuffer::WriteEvent(Thread *pThread, EventPipeEvent &event, BYTE *pData, unsigned int dataLength, LPCGUID pActivityId, LPCGUID pRelatedActivityId, StackContents *pStack) { CONTRACTL { @@ -77,7 +77,9 @@ bool EventPipeBuffer::WriteEvent(Thread *pThread, EventPipeEvent &event, BYTE *p event, pThread->GetOSThreadId(), pDataDest, - dataLength); + dataLength, + pActivityId, + pRelatedActivityId); // Copy the stack if a separate stack trace was provided. if(pStack != NULL) |