xref: /aosp_15_r20/system/extras/profcollectd/profcollectd.rc (revision 288bf5226967eb3dac5cce6c939ccc2a7f2b4fe5)
1service profcollectd /system/bin/profcollectd
2    class late_start
3    disabled
4    oneshot
5    user root
6    group root shell wakelock
7    task_profiles ServiceCapacityLow
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.aconfig_flags.profcollect_native_boot.enabled=true
17    start profcollectd
18
19on boot && property:persist.device_config.aconfig_flags.profcollect_native_boot.enabled=
20    exec_background - root shell -- /system/bin/profcollectctl reset
21