fix: 修改有误的代码

Signed-off-by: root <root@USER-20231012EH.localdomain>
This commit is contained in:
root 2024-07-04 16:48:38 +08:00
parent e64ff03b8e
commit ab8645f13f

View File

@ -911,7 +911,7 @@ bool SubCommandRecord::PrepareVirtualRuntime()
if (dedupStack_) { if (dedupStack_) {
virtualRuntime_.SetDedupStack(); virtualRuntime_.SetDedupStack();
auto collectSymbol = [this](PerfRecordSample *sample) { auto collectSymbol = [this](PerfRecordSample *sample) {
this->CollectSymbol((std::unique_ptr<PerfEventRecord>)sample, false); this->CollectSymbol(std::move(sample));
}; };
virtualRuntime_.SetCollectSymbolCallBack(collectSymbol); virtualRuntime_.SetCollectSymbolCallBack(collectSymbol);
} }