mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +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;
|
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 )];
|
||||||
|
Loading…
Reference in New Issue
Block a user