mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-23 07:29:42 +00:00
f054a14f05
Signed-off-by: 张建 <zhangjian22@huawei.com> #I68M3K
18 lines
742 B
INI
18 lines
742 B
INI
{
|
|
"jobs": [{
|
|
"name": "param:security.perf_harden=0",
|
|
"condition": "security.perf_harden=0",
|
|
"cmds": [
|
|
"write /proc/sys/kernel/perf_event_max_sample_rate ${hiviewdfx.hiperf.perf_event_max_sample_rate}",
|
|
"write /proc/sys/kernel/perf_cpu_time_max_percent ${hiviewdfx.hiperf.perf_cpu_time_max_percent}",
|
|
"write /proc/sys/kernel/perf_event_mlock_kb ${hiviewdfx.hiperf.perf_event_mlock_kb}"
|
|
]
|
|
}, {
|
|
"name": "post-init",
|
|
"cmds": [
|
|
"setparam hiviewdfx.hiperf.perf_event_max_sample_rate 100000",
|
|
"setparam hiviewdfx.hiperf.perf_cpu_time_max_percent 25",
|
|
"setparam hiviewdfx.hiperf.perf_event_mlock_kb 516"
|
|
]
|
|
}]
|
|
} |