From: José Rivero Date: Fri, 26 Apr 2019 00:37:59 +0000 (-0700) Subject: Undo a change where we ignore the specified EventPipe sessionType. X-Git-Tag: submit/tizen/20210909.063632~11030^2~1705 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6edf5ea673c5470314057005c4a31559f3edc049;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Undo a change where we ignore the specified EventPipe sessionType. Commit migrated from https://github.com/dotnet/coreclr/commit/c3e404425f9f03088f0e7106914190634baef619 --- diff --git a/src/coreclr/src/vm/eventpipe.cpp b/src/coreclr/src/vm/eventpipe.cpp index 361fe83..0490756 100644 --- a/src/coreclr/src/vm/eventpipe.cpp +++ b/src/coreclr/src/vm/eventpipe.cpp @@ -250,9 +250,9 @@ EventPipeSessionID EventPipe::Enable( [&](EventPipeProviderCallbackDataQueue* pEventPipeProviderCallbackDataQueue) { // Create a new session. - SampleProfiler::SetSamplingRate((unsigned long)profilerSamplingRateInNanoseconds); + SampleProfiler::SetSamplingRate(static_cast(profilerSamplingRateInNanoseconds)); EventPipeSession *pSession = s_pConfig->CreateSession( - (strOutputPath != NULL) ? EventPipeSessionType::File : EventPipeSessionType::Streaming, + sessionType, circularBufferSizeInMB, pProviders, numProviders); @@ -591,7 +591,7 @@ EventPipeProvider *EventPipe::CreateProvider(const SString &providerName, EventP PRECONDITION(!GetLock()->OwnedByCurrentThread()); } CONTRACTL_END; - + EventPipeProvider *pProvider = NULL; EventPipe::RunWithCallbackPostponed( [&](EventPipeProviderCallbackDataQueue* pEventPipeProviderCallbackDataQueue) @@ -613,7 +613,7 @@ EventPipeProvider *EventPipe::CreateProvider(const SString &providerName, EventP PRECONDITION(GetLock()->OwnedByCurrentThread()); } CONTRACTL_END; - + EventPipeProvider *pProvider = NULL; if (s_pConfig != NULL) {