summaryrefslogtreecommitdiff
path: root/simpleperf/simpleperf.rc
blob: 06ad0f5d1067b6cd7b21dc08b844a1cb70387c6d (plain)
1
2
3
4
5
6
7
8
9
# Not a service because services can only be stopped with SIGKILL
# (or SIGTERM+200ms+SIGKILL with gentle_kill), and simpleperf
# needs more than 200ms to clean up.

on early-init && property:ro.boot.simpleperf.boot_record=*
  exec_background u:r:su:s0 root root -- /system/bin/simpleperf record -a -g --exclude-perf -o /tmp/boot_perf.data

on property:sys.boot_completed=1 && property:ro.boot.simpleperf.boot_record=*
  exec u:r:su:s0 root root -- /system/bin/killall simpleperf