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

fix coding style

This commit is contained in:
Tiago Rodrigues
2023-11-13 13:43:03 -05:00
parent 5f60ac7ad2
commit c373647dae
3 changed files with 16 additions and 18 deletions
+3 -4
View File
@@ -1439,14 +1439,13 @@ Profiler::Profiler()
void Profiler::SpawnWorkerThreads()
{
#ifdef TRACY_HAS_SYSTEM_TRACING
// use TRACY_NO_SYS_TRACE=1 to force disabling sys tracing
// (even if available in the underlying system)
// use TRACY_NO_SYS_TRACE=1 to force disabling sys tracing (even if available in the underlying system)
// as it can have significant impact on the size of the traces
const char* noSysTrace = GetEnvVar( "TRACY_NO_SYS_TRACE" );
const bool disableSystrace = (noSysTrace && noSysTrace[0] == '1');
if(disableSystrace)
if( disableSystrace )
{
printf("TRACY: systrace was disabled by 'TRACY_NO_SYS_TRACE=1'\n");
TracyDebug("TRACY: Sys Trace was disabled by 'TRACY_NO_SYS_TRACE=1'\n");
}
else if( SysTraceStart( m_samplingPeriod ) )
{