mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Set per-cpu kernel buffer size to 512 KB.
The default setting was causing events to be lost on Android.
This commit is contained in:
parent
b8d459d48b
commit
f34609fd9b
@ -353,6 +353,7 @@ static const char TraceOptions[] = "trace_options";
|
||||
static const char TraceClock[] = "trace_clock";
|
||||
static const char SchedSwitch[] = "events/sched/sched_switch/enable";
|
||||
static const char SchedWakeup[] = "events/sched/sched_wakeup/enable";
|
||||
static const char BufferSizeKb[] = "buffer_size_kb";
|
||||
static const char TracePipe[] = "trace_pipe";
|
||||
|
||||
#ifdef __ANDROID__
|
||||
@ -442,6 +443,7 @@ bool SysTraceStart()
|
||||
#endif
|
||||
if( !TraceWrite( SchedSwitch, sizeof( SchedSwitch ), "1", 2 ) ) return false;
|
||||
if( !TraceWrite( SchedWakeup, sizeof( SchedWakeup ), "1", 2 ) ) return false;
|
||||
if( !TraceWrite( BufferSizeKb, sizeof( BufferSizeKb ), "512", 4 ) ) return false;
|
||||
|
||||
#if defined __ANDROID__ && ( defined __aarch64__ || defined __ARM_ARCH )
|
||||
SysTraceInjectPayload();
|
||||
|
Loading…
x
Reference in New Issue
Block a user