Florian Mayer | 7a5d83b | 2018-10-18 18:57:02 +0100 | [diff] [blame] | 1 | # Copyright (C) 2018 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | service heapprofd /system/bin/heapprofd |
| 15 | class late_start |
| 16 | disabled |
| 17 | socket heapprofd stream 0666 root root |
| 18 | user nobody |
Florian Mayer | 7ea4c08 | 2018-11-13 14:44:39 +0000 | [diff] [blame] | 19 | group nobody readproc |
Florian Mayer | 7a5d83b | 2018-10-18 18:57:02 +0100 | [diff] [blame] | 20 | writepid /dev/cpuset/system-background/tasks |
Florian Mayer | a5bb65d | 2018-11-28 11:24:28 +0000 | [diff] [blame] | 21 | onrestart exec_background - nobody shell -- /system/bin/heapprofd --cleanup-after-crash |
Florian Mayer | e9f4686 | 2018-11-07 20:20:37 +0000 | [diff] [blame] | 22 | capabilities KILL |
Florian Mayer | e30f722 | 2018-12-10 15:03:37 +0000 | [diff] [blame] | 23 | |
| 24 | on property:persist.heapprofd.enable=1 |
| 25 | start heapprofd |
| 26 | |
| 27 | on property:persist.heapprofd.enable=0 |
| 28 | stop heapprofd |