summaryrefslogtreecommitdiff
path: root/src/vm/eventpipesession.h
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2018-08-01 11:38:39 -0700
committerGitHub <noreply@github.com>2018-08-01 11:38:39 -0700
commitc4c16723a83c995838508ed7bca7fb99687f6d40 (patch)
tree353e30ee3936156ca831264a2292a248af06d825 /src/vm/eventpipesession.h
parent2293351dc5eeb00681c38b3c1e5975b4d1ce3609 (diff)
downloadcoreclr-c4c16723a83c995838508ed7bca7fb99687f6d40.tar.gz
coreclr-c4c16723a83c995838508ed7bca7fb99687f6d40.tar.bz2
coreclr-c4c16723a83c995838508ed7bca7fb99687f6d40.zip
Expose OSThreadId and TimeStamp on EventWrittenEventArgs (#19002)
* Add EventWrittenEventArgs public properties OSThreadId and TimeStamp and plumb through OSThreadId. * Plumb ActivityId and RelatedActivityId to EventListener.
Diffstat (limited to 'src/vm/eventpipesession.h')
-rw-r--r--src/vm/eventpipesession.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/vm/eventpipesession.h b/src/vm/eventpipesession.h
index c8c2e1ff1b..5518e76097 100644
--- a/src/vm/eventpipesession.h
+++ b/src/vm/eventpipesession.h
@@ -34,6 +34,12 @@ private:
// This determines behavior within the system (e.g. policies around which events to drop, etc.)
EventPipeSessionType m_sessionType;
+ // Start date and time in UTC.
+ FILETIME m_sessionStartTime;
+
+ // Start timestamp.
+ LARGE_INTEGER m_sessionStartTimeStamp;
+
public:
// TODO: This needs to be exposed via EventPipe::CreateSession() and EventPipe::DeleteSession() to avoid memory ownership issues.
@@ -76,6 +82,20 @@ public:
m_rundownEnabled = value;
}
+ // Get the session start time in UTC.
+ FILETIME GetStartTime() const
+ {
+ LIMITED_METHOD_CONTRACT;
+ return m_sessionStartTime;
+ }
+
+ // Get the session start timestamp.
+ LARGE_INTEGER GetStartTimeStamp() const
+ {
+ LIMITED_METHOD_CONTRACT;
+ return m_sessionStartTimeStamp;
+ }
+
// Enable all events.
// This is used for testing and is controlled via COMPLUS_EnableEventPipe.
void EnableAllEvents();