diff options
Diffstat (limited to 'simpleperf/record_file.h')
-rw-r--r-- | simpleperf/record_file.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/simpleperf/record_file.h b/simpleperf/record_file.h index 1ada0804..76f70436 100644 --- a/simpleperf/record_file.h +++ b/simpleperf/record_file.h @@ -43,23 +43,13 @@ struct FileFeature { std::string path; DsoType type; uint64_t min_vaddr; - uint64_t file_offset_of_min_vaddr; // for DSO_ELF_FILE or DSO_KERNEL_MODULE + uint64_t file_offset_of_min_vaddr; std::vector<Symbol> symbols; // used for reading symbols std::vector<const Symbol*> symbol_ptrs; // used for writing symbols std::vector<uint64_t> dex_file_offsets; FileFeature() {} - void Clear() { - path.clear(); - type = DSO_UNKNOWN_FILE; - min_vaddr = 0; - file_offset_of_min_vaddr = 0; - symbols.clear(); - symbol_ptrs.clear(); - dex_file_offsets.clear(); - } - DISALLOW_COPY_AND_ASSIGN(FileFeature); }; @@ -189,7 +179,6 @@ class RecordFileReader { bool ReadFileFeature(size_t& read_pos, FileFeature* file); const std::unordered_map<std::string, std::string>& GetMetaInfoFeature() { return meta_info_; } - std::string GetClockId(); std::optional<DebugUnwindFeature> ReadDebugUnwindFeature(); void LoadBuildIdAndFileFeatures(ThreadTree& thread_tree); @@ -204,12 +193,9 @@ class RecordFileReader { private: RecordFileReader(const std::string& filename, FILE* fp); bool ReadHeader(); - bool CheckSectionDesc(const PerfFileFormat::SectionDesc& desc, uint64_t min_offset); bool ReadAttrSection(); bool ReadIdsForAttr(const PerfFileFormat::FileAttr& attr, std::vector<uint64_t>* ids); bool ReadFeatureSectionDescriptors(); - bool ReadFileV1Feature(size_t& read_pos, FileFeature* file); - bool ReadFileV2Feature(size_t& read_pos, FileFeature* file); bool ReadMetaInfoFeature(); void UseRecordingEnvironment(); std::unique_ptr<Record> ReadRecord(); @@ -219,7 +205,6 @@ class RecordFileReader { const std::string filename_; FILE* record_fp_; - uint64_t file_size_; PerfFileFormat::FileHeader header_; std::vector<PerfFileFormat::FileAttr> file_attrs_; |