mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-27 09:01:33 +00:00
thread_cpu回退为getpid
Signed-off-by: yuhaoqiang <yuhaoqiang@huawei.com>
This commit is contained in:
commit
5a2e36c273
@ -39,7 +39,7 @@ void HidebugAppThreadCpu::InitThreadCpuCollector()
|
||||
HILOG_ERROR(LOG_CORE, "InitThreadCpuCollector fail, CpuCollector create fail!");
|
||||
return;
|
||||
}
|
||||
int pid = getprocpid();
|
||||
int pid = getpid();
|
||||
threadStatInfoCollector_ = cpuCollector->CreateThreadCollector(pid);
|
||||
if (!threadStatInfoCollector_) {
|
||||
HILOG_ERROR(LOG_CORE, "InitThreadCpuCollector fail, CreateThreadStatInfoCollector fail!");
|
||||
|
Loading…
Reference in New Issue
Block a user