Skip to content

Commit 3cf188a

Browse files
committed
Changing comments/names that refers to file switching to flushing instead
1 parent fc05a42 commit 3cf188a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/vm/eventpipe.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ EventPipeBufferManager *EventPipe::s_pBufferManager = NULL;
3535
EventPipeFile *EventPipe::s_pFile = NULL;
3636
EventPipeEventSource *EventPipe::s_pEventSource = NULL;
3737
HANDLE EventPipe::s_fileSwitchTimerHandle = NULL;
38-
ULONGLONG EventPipe::s_lastFlushSwitchTime = 0;
38+
ULONGLONG EventPipe::s_lastFlushTime = 0;
3939

4040
#ifdef FEATURE_PAL
4141
// This function is auto-generated from /src/scripts/genEventPipe.py
@@ -386,7 +386,7 @@ void EventPipe::DisableInternal(EventPipeSessionID id, EventPipeProviderCallback
386386
s_pConfig->DeleteSession(s_pSession);
387387
s_pSession = NULL;
388388

389-
// Delete the file switch timer.
389+
// Delete the flush timer.
390390
DeleteFlushTimerCallback();
391391

392392
// Flush all write buffers to make sure that all threads see the change.
@@ -460,8 +460,8 @@ void EventPipe::CreateFlushTimerCallback()
460460

461461
timerContextHolder->TimerId = 0;
462462

463-
// Initialize the last file switch time.
464-
s_lastFlushSwitchTime = CLRGetTickCount64();
463+
// Initialize the last flush time.
464+
s_lastFlushTime = CLRGetTickCount64();
465465

466466
bool success = false;
467467
_ASSERTE(s_fileSwitchTimerHandle == NULL);
@@ -527,11 +527,11 @@ void WINAPI EventPipe::FlushTimer(PVOID parameter, BOOLEAN timerFired)
527527
if (s_pSession == nullptr || s_pFile == nullptr)
528528
return;
529529

530-
// Make sure that we should actually switch files.
530+
// Make sure that we should actually flush.
531531
if (!Enabled() || s_pSession->GetSessionType() != EventPipeSessionType::IpcStream)
532532
return;
533533

534-
if (CLRGetTickCount64() > (s_lastFlushSwitchTime + 100))
534+
if (CLRGetTickCount64() > (s_lastFlushTime + 100))
535535
{
536536
// Get the current time stamp.
537537
// WriteAllBuffersToFile will use this to ensure that no events after
@@ -540,7 +540,7 @@ void WINAPI EventPipe::FlushTimer(PVOID parameter, BOOLEAN timerFired)
540540
QueryPerformanceCounter(&stopTimeStamp);
541541
s_pBufferManager->WriteAllBuffersToFile(s_pFile, stopTimeStamp);
542542

543-
s_lastFlushSwitchTime = CLRGetTickCount64();
543+
s_lastFlushTime = CLRGetTickCount64();
544544
}
545545

546546
if (s_pFile->HasErrors())

src/vm/eventpipe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class EventPipe
397397
static EventPipeFile *s_pFile;
398398
static EventPipeEventSource *s_pEventSource;
399399
static HANDLE s_fileSwitchTimerHandle;
400-
static ULONGLONG s_lastFlushSwitchTime;
400+
static ULONGLONG s_lastFlushTime;
401401
};
402402

403403
struct EventPipeProviderConfiguration

0 commit comments

Comments
 (0)