mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 06:50:12 +00:00
8b160275f1
Signed-off-by:shuxinyi4 <shuxinyi4@h-partners.com> Signed-off-by: wenlong_12 <wenlong12@huawei.com>
85 lines
3.0 KiB
INI
85 lines
3.0 KiB
INI
{
|
|
"services" : [{
|
|
"name" : "hiprofilerd",
|
|
"path" : ["/system/bin/hiprofilerd"],
|
|
"sandbox" : 0,
|
|
"once" : 1,
|
|
"uid" : "hiprofiler",
|
|
"gid" : ["shell", "readproc", "netsys_socket"],
|
|
"socket" : [{
|
|
"name" : "hiprofiler_unix_socket",
|
|
"family" : "AF_UNIX",
|
|
"type" : "SOCK_STREAM",
|
|
"protocol" : "default",
|
|
"permissions" : "0600",
|
|
"uid" : "hiprofiler",
|
|
"gid" : "shell",
|
|
"option" : [
|
|
"SOCKET_OPTION_PASSCRED",
|
|
"SOCK_CLOEXEC"
|
|
]
|
|
}],
|
|
"secon" : "u:r:hiprofilerd:s0",
|
|
"start-mode" : "condition"
|
|
}
|
|
],
|
|
"jobs" : [{
|
|
"name" : "param:hiviewdfx.hiprofiler.profilerd.start=1",
|
|
"condition" : "hiviewdfx.hiprofiler.profilerd.start=1",
|
|
"cmds" : [
|
|
"start hiprofilerd"
|
|
]
|
|
}, {
|
|
"name" : "param:hiviewdfx.hiprofiler.profilerd.start=0",
|
|
"condition" : "hiviewdfx.hiprofiler.profilerd.start=0",
|
|
"cmds" : [
|
|
"stop hiprofilerd"
|
|
]
|
|
}, {
|
|
"name" : "param:hiviewdfx.hiprofiler.plugins.start=1",
|
|
"condition" : "hiviewdfx.hiprofiler.plugins.start=1",
|
|
"cmds" : [
|
|
"start hiprofiler_plugins"
|
|
]
|
|
}, {
|
|
"name" : "param:hiviewdfx.hiprofiler.plugins.start=0",
|
|
"condition" : "hiviewdfx.hiprofiler.plugins.start=0",
|
|
"cmds" : [
|
|
"stop hiprofiler_plugins"
|
|
]
|
|
}, {
|
|
"name" : "param:hiviewdfx.hiprofiler.native_memoryd.start=1",
|
|
"condition" : "hiviewdfx.hiprofiler.native_memoryd.start=1",
|
|
"cmds" : [
|
|
"start hiprofiler_daemon"
|
|
]
|
|
}, {
|
|
"name" : "param:hiviewdfx.hiprofiler.native_memoryd.start=0",
|
|
"condition" : "hiviewdfx.hiprofiler.native_memoryd.start=0",
|
|
"cmds" : [
|
|
"stop hiprofiler_daemon",
|
|
"stop hiprofiler_daemon_sa"
|
|
]
|
|
}, {
|
|
"name" : "param:hiviewdfx.hiprofiler.native_memoryd.start=2",
|
|
"condition" : "hiviewdfx.hiprofiler.native_memoryd.start=2",
|
|
"cmds" : [
|
|
"start hiprofiler_daemon_sa"
|
|
]
|
|
},
|
|
{
|
|
"name" : "param:hiviewdfx.hiprofiler.memprofiler.start=1",
|
|
"condition" : "hiviewdfx.hiprofiler.memprofiler.start=1",
|
|
"cmds" : [
|
|
"start hiprofiler_daemon_sa"
|
|
]
|
|
}, {
|
|
"name" : "param:hiviewdfx.hiprofiler.memprofiler.start=0",
|
|
"condition" : "hiviewdfx.hiprofiler.memprofiler.start=0",
|
|
"cmds" : [
|
|
"stop hiprofiler_daemon_sa"
|
|
]
|
|
}
|
|
]
|
|
}
|