1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Don't identify samples if there will be no context switches.

This commit is contained in:
Bartosz Taudul 2021-12-04 18:57:52 +01:00
parent 0c809b14d5
commit 22284d57e7
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1540,7 +1540,9 @@ void Profiler::Worker()
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
flags |= WelcomeFlag::CombineSamples; flags |= WelcomeFlag::CombineSamples;
# ifndef TRACY_NO_CONTEXT_SWITCH
flags |= WelcomeFlag::IdentifySamples; flags |= WelcomeFlag::IdentifySamples;
# endif
#endif #endif
#if defined __i386 || defined _M_IX86 #if defined __i386 || defined _M_IX86