1service profcollectd /system/bin/profcollectd
2    class late_start
3    disabled
4    oneshot
5    user root
6    group root wakelock
7    writepid /dev/cpuset/system-background/tasks
8
9on post-fs-data
10    # Create directory for profcollectd.
11    mkdir /data/misc/profcollectd 0770 shell shell
12    mkdir /data/misc/profcollectd/trace 0770 shell shell
13    mkdir /data/misc/profcollectd/output 0770 shell shell
14    mkdir /data/misc/profcollectd/report 0770 shell shell
15
16on boot && property:persist.device_config.profcollect_native_boot.enabled=true
17    start profcollectd
18
19on boot && property:persist.device_config.profcollect_native_boot.enabled=
20    exec_background - root shell -- /system/bin/profcollectctl reset
21