developtools_hiperf/etc/hiperf.cfg

18 lines
742 B
INI
Raw Normal View History

{
"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"
]
}]
}