Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2021-12-04 20:57:52 +0300
committerBartosz Taudul <wolf@nereid.pl>2021-12-05 03:32:30 +0300
commit22284d57e7cae1522f4c9f7b20541c83efabc30c (patch)
treec7c21c31555b4846ea94be6ebbfcd5cd5faf2d2c
parent0c809b14d51204b9a2a7b8dcba45346ee8a3bad0 (diff)
Don't identify samples if there will be no context switches.
-rw-r--r--client/TracyProfiler.cpp2
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