summaryrefslogtreecommitdiff
path: root/src/vm/eventpipe.h
diff options
context:
space:
mode:
authorJosé Rivero <jorive@microsoft.com>2019-04-08 11:54:19 -0700
committerGitHub <noreply@github.com>2019-04-08 11:54:19 -0700
commit2ab76fe4fb75af98f470650c939f79c569c729a3 (patch)
tree0f1b36d0b1e2d09df1d7336dd8274e2eccba5a08 /src/vm/eventpipe.h
parentd40a6ac7efe52dc589936fd815210f7290f3fb68 (diff)
downloadcoreclr-2ab76fe4fb75af98f470650c939f79c569c729a3.tar.gz
coreclr-2ab76fe4fb75af98f470650c939f79c569c729a3.tar.bz2
coreclr-2ab76fe4fb75af98f470650c939f79c569c729a3.zip
Remove the MultiFileSec option from EventPipe. (#23777)
This option was a pseudo mechanism to fake "streaming" events out-of-proc. The idea was to have EventPipe creating files every N seconds, with event data up to that point. Thus, external processes could read these files in an attempt to get "read-time" data. Now, we actually have streaming of event through IPC channels, so this option is not needed.
Diffstat (limited to 'src/vm/eventpipe.h')
-rw-r--r--src/vm/eventpipe.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/vm/eventpipe.h b/src/vm/eventpipe.h
index 5129baf9a9..e60c493585 100644
--- a/src/vm/eventpipe.h
+++ b/src/vm/eventpipe.h
@@ -255,8 +255,7 @@ public:
uint32_t circularBufferSizeInMB,
uint64_t profilerSamplingRateInNanoseconds,
const EventPipeProviderConfiguration *pProviders,
- uint32_t numProviders,
- uint64_t multiFileTraceLengthInSeconds);
+ uint32_t numProviders);
static EventPipeSessionID Enable(
IpcStream *pStream,
@@ -313,28 +312,16 @@ private:
// Enable the specified EventPipe session.
static EventPipeSessionID Enable(
EventPipeSession *const pSession,
- WAITORTIMERCALLBACK callback,
- DWORD dueTime,
- DWORD period);
+ WAITORTIMERCALLBACK callback = nullptr,
+ DWORD dueTime = 0,
+ DWORD period = 0);
static void CreateFlushTimerCallback(WAITORTIMERCALLBACK Callback, DWORD DueTime, DWORD Period);
static void DeleteFlushTimerCallback();
- // Performs one polling operation to determine if it is necessary to switch to a new file.
- // If the polling operation decides it is time, it will perform the switch.
- // Called directly from the timer when the timer is triggered.
- static void WINAPI SwitchToNextFileTimerCallback(PVOID parameter, BOOLEAN timerFired);
-
static void WINAPI FlushTimer(PVOID parameter, BOOLEAN timerFired);
- // If event pipe has been configured to write multiple files, switch to the next file.
- static void SwitchToNextFile();
-
- // Generate the file path for the next trace file.
- // This is used when event pipe has been configured to create multiple trace files with a specified maximum length of time.
- static void GetNextFilePath(SString &nextTraceFilePath);
-
// Callback function for the stack walker. For each frame walked, this callback is invoked.
static StackWalkAction StackWalkCallback(CrawlFrame *pCf, StackContents *pData);
@@ -358,14 +345,11 @@ private:
static EventPipeConfiguration *s_pConfig;
static EventPipeSession *s_pSession;
static EventPipeBufferManager *s_pBufferManager;
- static LPCWSTR s_pOutputPath;
- static unsigned long s_nextFileIndex;
static EventPipeFile *s_pFile;
static EventPipeEventSource *s_pEventSource;
static LPCWSTR s_pCommandLine;
static HANDLE s_fileSwitchTimerHandle;
static ULONGLONG s_lastFlushSwitchTime;
- static uint64_t s_multiFileTraceLengthInSeconds;
};
struct EventPipeProviderConfiguration