diff options
author | Brian Robbins <brianrob@microsoft.com> | 2017-05-10 15:11:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-10 15:11:28 -0700 |
commit | 377073385e4545d36e1a96429dd78548f87c597c (patch) | |
tree | f89141239ab55d650e7b516ea10a8514d5c81c44 /src/vm/eventpipe.h | |
parent | 0b625bfdbb97565b7d489d1d083cfaf4dbd47e0d (diff) | |
download | coreclr-377073385e4545d36e1a96429dd78548f87c597c.tar.gz coreclr-377073385e4545d36e1a96429dd78548f87c597c.tar.bz2 coreclr-377073385e4545d36e1a96429dd78548f87c597c.zip |
Re-Factor EventSource to Support Writing to EventPipe (#11435)
Re-Factor EventSource to Support Writing to EventPipe.
Diffstat (limited to 'src/vm/eventpipe.h')
-rw-r--r-- | src/vm/eventpipe.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/vm/eventpipe.h b/src/vm/eventpipe.h index c6d7f61152..d5b85f7e3a 100644 --- a/src/vm/eventpipe.h +++ b/src/vm/eventpipe.h @@ -8,6 +8,7 @@ #ifdef FEATURE_PERFTRACING #include "crst.h" +#include "eventpipeprovider.h" #include "stackwalk.h" class EventPipeConfiguration; @@ -174,6 +175,32 @@ class EventPipe static EventPipeJsonFile *s_pJsonFile; }; +class EventPipeInternal +{ + +public: + + static INT_PTR QCALLTYPE CreateProvider( + GUID providerID, + EventPipeCallback pCallbackFunc); + + static INT_PTR QCALLTYPE AddEvent( + INT_PTR provHandle, + __int64 keywords, + unsigned int eventID, + unsigned int eventVersion, + unsigned int level, + bool needStack); + + static void QCALLTYPE DeleteProvider( + INT_PTR provHandle); + + static void QCALLTYPE WriteEvent( + INT_PTR eventHandle, + void *pData, + unsigned int length); +}; + #endif // FEATURE_PERFTRACING #endif // __EVENTPIPE_H__ |