1# Not a service because services can only be stopped with SIGKILL 2# (or SIGTERM+200ms+SIGKILL with gentle_kill), and simpleperf 3# needs more than 200ms to clean up. 4 5on early-init && property:ro.boot.simpleperf.boot_record=* 6 exec_background u:r:su:s0 root root -- /system/bin/simpleperf record -a -g --exclude-perf -o /tmp/boot_perf.data 7 8on property:sys.boot_completed=1 && property:ro.boot.simpleperf.boot_record=* 9 exec u:r:su:s0 root root -- /system/bin/killall simpleperf 10