diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2021-12-04 20:57:52 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2021-12-05 03:32:30 +0300 |
commit | 22284d57e7cae1522f4c9f7b20541c83efabc30c (patch) | |
tree | c7c21c31555b4846ea94be6ebbfcd5cd5faf2d2c | |
parent | 0c809b14d51204b9a2a7b8dcba45346ee8a3bad0 (diff) |
Don't identify samples if there will be no context switches.
-rw-r--r-- | client/TracyProfiler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |