mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-27 09:40:42 +00:00
commit
3fecb084ab
@ -70,6 +70,11 @@ void Report::AddReportItem(const PerfRecordSample &sample, bool includeCallStack
|
||||
} else {
|
||||
auto frameIt = sample.callFrames_.begin();
|
||||
HLOG_ASSERT(frameIt->pc < PERF_CONTEXT_MAX);
|
||||
// for arkjs frame, skip the stub.an frame
|
||||
if (StringEndsWith(frameIt->mapName, "stub.an")) {
|
||||
HLOGV("stub.an frame, go to next, mapname %s", frameIt->mapName.c_str());
|
||||
frameIt++;
|
||||
}
|
||||
ReportItem &item = configs_[configIndex].reportItems_.emplace_back(
|
||||
sample.data_.pid, sample.data_.tid, thread.name_, frameIt->mapName,
|
||||
frameIt->funcName, frameIt->funcOffset, sample.data_.period);
|
||||
|
Loading…
Reference in New Issue
Block a user