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
#ifdef _WIN32
flags |= WelcomeFlag::CombineSamples;
# ifndef TRACY_NO_CONTEXT_SWITCH
flags |= WelcomeFlag::IdentifySamples;
# endif
#endif
#if defined __i386 || defined _M_IX86