Do not retrieve call stacks if sampling is not requested.

This commit is contained in:
Bartosz Taudul 2023-01-05 21:43:33 +01:00
parent b53acde418
commit ecb4a0527a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -409,6 +409,7 @@ bool SysTraceStart( int64_t& samplingPeriod )
return false; return false;
} }
#ifndef TRACY_NO_SAMPLING
if( isOs64Bit ) if( isOs64Bit )
{ {
CLASSIC_EVENT_ID stackId[2] = {}; CLASSIC_EVENT_ID stackId[2] = {};
@ -423,6 +424,7 @@ bool SysTraceStart( int64_t& samplingPeriod )
return false; return false;
} }
} }
#endif
#ifdef UNICODE #ifdef UNICODE
WCHAR KernelLoggerName[sizeof( KERNEL_LOGGER_NAME )]; WCHAR KernelLoggerName[sizeof( KERNEL_LOGGER_NAME )];