mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-23 07:29:42 +00:00
修改常引用
Signed-off-by: yuanye <yuanye64@huawei.com>
This commit is contained in:
parent
28583c60f3
commit
9c7fb628d9
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user