1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

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