[&](EventPipeProviderCallbackDataQueue* pEventPipeProviderCallbackDataQueue)
{
// Create a new session.
- SampleProfiler::SetSamplingRate((unsigned long)profilerSamplingRateInNanoseconds);
+ SampleProfiler::SetSamplingRate(static_cast<unsigned long>(profilerSamplingRateInNanoseconds));
EventPipeSession *pSession = s_pConfig->CreateSession(
- (strOutputPath != NULL) ? EventPipeSessionType::File : EventPipeSessionType::Streaming,
+ sessionType,
circularBufferSizeInMB,
pProviders,
numProviders);
PRECONDITION(!GetLock()->OwnedByCurrentThread());
}
CONTRACTL_END;
-
+
EventPipeProvider *pProvider = NULL;
EventPipe::RunWithCallbackPostponed(
[&](EventPipeProviderCallbackDataQueue* pEventPipeProviderCallbackDataQueue)
PRECONDITION(GetLock()->OwnedByCurrentThread());
}
CONTRACTL_END;
-
+
EventPipeProvider *pProvider = NULL;
if (s_pConfig != NULL)
{