mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Do not retrieve call stacks if sampling is not requested.
This commit is contained in:
parent
b53acde418
commit
ecb4a0527a
@ -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 )];
|
||||
|
Loading…
Reference in New Issue
Block a user