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

Remove unused variables.

This commit is contained in:
Bartosz Taudul
2022-04-26 21:29:16 +02:00
parent c9240c100d
commit 95cf143336
4 changed files with 4 additions and 11 deletions
+3 -1
View File
@@ -773,11 +773,13 @@ bool SysTraceStart( int64_t& samplingPeriod )
return false;
#endif
int paranoidLevel = 2;
const auto paranoidLevelStr = ReadFile( "/proc/sys/kernel/perf_event_paranoid" );
if( !paranoidLevelStr ) return false;
#ifdef TRACY_VERBOSE
int paranoidLevel = 2;
paranoidLevel = atoi( paranoidLevelStr );
TracyDebug( "perf_event_paranoid: %i\n", paranoidLevel );
#endif
int switchId = -1, wakeupId = -1;
const auto switchIdStr = ReadFile( "/sys/kernel/debug/tracing/events/sched/sched_switch/id" );