mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
simplify an if by omitting the redundant __ANDROID__ condition
This commit is contained in:
parent
d7059eca63
commit
0fdcdd0ef9
@ -1167,7 +1167,7 @@ void SysTraceWorker( void* ptr )
|
|||||||
close( pipefd[1] );
|
close( pipefd[1] );
|
||||||
sched_param sp = { 4 };
|
sched_param sp = { 4 };
|
||||||
pthread_setschedparam( pthread_self(), SCHED_FIFO, &sp );
|
pthread_setschedparam( pthread_self(), SCHED_FIFO, &sp );
|
||||||
#if defined __ANDROID__ && ( defined __aarch64__ || defined __ARM_ARCH )
|
#if defined __aarch64__ || defined __ARM_ARCH
|
||||||
execlp( "su", "su", "-c", "/data/tracy_systrace", (char*)nullptr );
|
execlp( "su", "su", "-c", "/data/tracy_systrace", (char*)nullptr );
|
||||||
#endif
|
#endif
|
||||||
execlp( "su", "su", "-c", "cat /sys/kernel/debug/tracing/trace_pipe", (char*)nullptr );
|
execlp( "su", "su", "-c", "cat /sys/kernel/debug/tracing/trace_pipe", (char*)nullptr );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user