mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-27 09:01:33 +00:00
执行hiprofiler_cmd -k 时停止native_daemon sa 服务
Signed-off-by: wenlong_12 <wenlong12@huawei.com>
This commit is contained in:
parent
03f5efdd57
commit
e2ed8ae6a8
@ -461,6 +461,9 @@ bool CheckProcessExit(const std::string& processName, int& pid)
|
||||
|
||||
void KillDependentProcess()
|
||||
{
|
||||
constexpr int waitProcMills = 300;
|
||||
OHOS::system::SetParameter("hiviewdfx.hiprofiler.memprofiler.start", "0");
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(waitProcMills));
|
||||
if (getuid() == 0) {
|
||||
// if pid is equal to -1, need to get pid first.
|
||||
if (g_nativeDaemonPid == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user