@@ -35,7 +35,7 @@ EventPipeBufferManager *EventPipe::s_pBufferManager = NULL;
35
35
EventPipeFile *EventPipe::s_pFile = NULL ;
36
36
EventPipeEventSource *EventPipe::s_pEventSource = NULL ;
37
37
HANDLE EventPipe::s_fileSwitchTimerHandle = NULL ;
38
- ULONGLONG EventPipe::s_lastFlushSwitchTime = 0 ;
38
+ ULONGLONG EventPipe::s_lastFlushTime = 0 ;
39
39
40
40
#ifdef FEATURE_PAL
41
41
// This function is auto-generated from /src/scripts/genEventPipe.py
@@ -386,7 +386,7 @@ void EventPipe::DisableInternal(EventPipeSessionID id, EventPipeProviderCallback
386
386
s_pConfig->DeleteSession (s_pSession);
387
387
s_pSession = NULL ;
388
388
389
- // Delete the file switch timer.
389
+ // Delete the flush timer.
390
390
DeleteFlushTimerCallback ();
391
391
392
392
// Flush all write buffers to make sure that all threads see the change.
@@ -460,8 +460,8 @@ void EventPipe::CreateFlushTimerCallback()
460
460
461
461
timerContextHolder->TimerId = 0 ;
462
462
463
- // Initialize the last file switch time.
464
- s_lastFlushSwitchTime = CLRGetTickCount64 ();
463
+ // Initialize the last flush time.
464
+ s_lastFlushTime = CLRGetTickCount64 ();
465
465
466
466
bool success = false ;
467
467
_ASSERTE (s_fileSwitchTimerHandle == NULL );
@@ -527,11 +527,11 @@ void WINAPI EventPipe::FlushTimer(PVOID parameter, BOOLEAN timerFired)
527
527
if (s_pSession == nullptr || s_pFile == nullptr )
528
528
return ;
529
529
530
- // Make sure that we should actually switch files .
530
+ // Make sure that we should actually flush .
531
531
if (!Enabled () || s_pSession->GetSessionType () != EventPipeSessionType::IpcStream)
532
532
return ;
533
533
534
- if (CLRGetTickCount64 () > (s_lastFlushSwitchTime + 100 ))
534
+ if (CLRGetTickCount64 () > (s_lastFlushTime + 100 ))
535
535
{
536
536
// Get the current time stamp.
537
537
// WriteAllBuffersToFile will use this to ensure that no events after
@@ -540,7 +540,7 @@ void WINAPI EventPipe::FlushTimer(PVOID parameter, BOOLEAN timerFired)
540
540
QueryPerformanceCounter (&stopTimeStamp);
541
541
s_pBufferManager->WriteAllBuffersToFile (s_pFile, stopTimeStamp);
542
542
543
- s_lastFlushSwitchTime = CLRGetTickCount64 ();
543
+ s_lastFlushTime = CLRGetTickCount64 ();
544
544
}
545
545
546
546
if (s_pFile->HasErrors ())
0 commit comments