Merge "Add debug system properties to control profiling limits."
am: 1db3789252
Change-Id: I32d3d93bc97aab5a9c21be0f0af5191b581aa32a
This commit is contained in:
commit
329e12fb57
1 changed files with 3 additions and 0 deletions
|
@ -737,6 +737,9 @@ on property:sys.sysctl.tcp_def_init_rwnd=*
|
|||
|
||||
on property:security.perf_harden=0
|
||||
write /proc/sys/kernel/perf_event_paranoid 1
|
||||
write /proc/sys/kernel/perf_event_max_sample_rate ${debug.perf_event_max_sample_rate:-100000}
|
||||
write /proc/sys/kernel/perf_cpu_time_max_percent ${debug.perf_cpu_time_max_percent:-25}
|
||||
write /proc/sys/kernel/perf_event_mlock_kb ${debug.perf_event_mlock_kb:-516}
|
||||
|
||||
on property:security.perf_harden=1
|
||||
write /proc/sys/kernel/perf_event_paranoid 3
|
||||
|
|
Loading…
Reference in a new issue