From 7ca2692405f255ce4a87d2c3ec263d938cf274fc Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Thu, 25 May 2017 12:28:24 -0700 Subject: 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. --- src/vm/eventpipebuffer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/vm/eventpipebuffer.cpp') 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) -- cgit v1.2.3