修改常引用

Signed-off-by: yuanye <yuanye64@huawei.com>
This commit is contained in:
yuanye 2024-11-21 15:20:00 +08:00
parent 28583c60f3
commit 9c7fb628d9
4 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ private:
void DumpPrintFileHeader(int indent = 0);
void DumpAttrPortion(int indent = 0);
void DumpDataPortion(int indent = 0);
void DumpCallChain(int indent, PerfRecordSample& sample);
void DumpCallChain(int indent, const PerfRecordSample& sample);
void DumpFeaturePortion(int indent = 0);
void DumpUniqueStackTableNode(int indent, const PerfFileSectionUniStackTable &uniStackTable);
void ExprotUserData(PerfEventRecord& record);

View File

@ -304,7 +304,7 @@ private:
// callback to process record
bool ProcessRecord(PerfEventRecord& record);
bool SaveRecord(PerfEventRecord& record, bool ptrReleaseFlag = false);
bool SaveRecord(const PerfEventRecord& record, bool ptrReleaseFlag = false);
// file format like as 0,1-3,4-6,7,8
uint32_t GetCountFromFile(const std::string &fileName);

View File

@ -423,7 +423,7 @@ void SubCommandDump::ExprotUserData(PerfEventRecord& record)
}
}
void SubCommandDump::DumpCallChain(int indent, PerfRecordSample& sample)
void SubCommandDump::DumpCallChain(int indent, const PerfRecordSample& sample)
{
PRINT_INDENT(indent, "\n callchain: %zu\n", sample.callFrames_.size());
if (sample.callFrames_.size() > 0) {

View File

@ -1359,7 +1359,7 @@ bool SubCommandRecord::ProcessRecord(PerfEventRecord& record)
#endif
}
bool SubCommandRecord::SaveRecord(PerfEventRecord& record, bool ptrReleaseFlag)
bool SubCommandRecord::SaveRecord(const PerfEventRecord& record, bool ptrReleaseFlag)
{
#if HIDEBUG_RECORD_NOT_SAVE
return true;