From 22284d57e7cae1522f4c9f7b20541c83efabc30c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 4 Dec 2021 18:57:52 +0100 Subject: [PATCH] Don't identify samples if there will be no context switches. --- client/TracyProfiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 93f8422e..f08e375a 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1540,7 +1540,9 @@ void Profiler::Worker() #endif #ifdef _WIN32 flags |= WelcomeFlag::CombineSamples; +# ifndef TRACY_NO_CONTEXT_SWITCH flags |= WelcomeFlag::IdentifySamples; +# endif #endif #if defined __i386 || defined _M_IX86