support ArkJs callframe for hiperf

Signed-off-by: yuyanqinghw <yuyanqing539@huawei.com>
This commit is contained in:
yuyanqinghw 2024-02-27 19:35:04 +08:00
parent 43dbb684cd
commit 52819f88de

View File

@ -605,7 +605,7 @@ void VirtualRuntime::UnwindFromRecord(PerfRecordSample &recordSample)
#endif
// we will not do this in record mode
if (!SymbolsFile::onRecording_) {
if (recordCallBack_ == nullptr) {
if (dedupStack_ && recordSample.stackId_.section.id > 0 && recordSample.data_.nr == 0) {
RecoverCallStack(recordSample);
}