mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-27 00:51:47 +00:00
!1928 native daemon减少多线程使用共享指针
Merge pull request !1928 from zhangyixin/master
This commit is contained in:
commit
c5a5dcc039
@ -49,6 +49,7 @@ void StackDataRepeater::Close()
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(mutex_);
|
||||
rawDataQueue_.clear();
|
||||
rawDataCacheQueue_.clear();
|
||||
closed_ = true;
|
||||
}
|
||||
PROFILER_LOG_INFO(LOG_CORE, "StackDataRepeater Close, reducedStackCount_ : %" PRIx64 " ", reducedStackCount_);
|
||||
|
@ -505,8 +505,13 @@ void StackPreprocess::TakeResults()
|
||||
unwindTimes.load(), timeCost.load(), timeCost.load() / unwindTimes.load());
|
||||
}
|
||||
#endif
|
||||
dataRepeater_->ReturnRawStack(rawData);
|
||||
} // for
|
||||
for (unsigned int i = 0; i < MAX_BATCH_CNT; i++) {
|
||||
if (!batchRawStack[i]) {
|
||||
break;
|
||||
}
|
||||
dataRepeater_->ReturnRawStack(std::move(batchRawStack[i]));
|
||||
}
|
||||
if (hookConfig_.save_file() && hookConfig_.file_name() != "" && !isHookStandaloneSerialize_) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user