Home
last modified time | relevance | path

Searched refs:record_file_reader_ (Results 1 – 6 of 6) sorted by relevance

/system/extras/simpleperf/
Dcmd_dumprecord.cpp163 std::unique_ptr<RecordFileReader> record_file_reader_; member in __anonb955a9b80111::DumpRecordCommand
174 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in Run()
175 if (record_file_reader_ == nullptr) { in Run()
221 const FileHeader& header = record_file_reader_->FileHeader(); in DumpFileHeader()
258 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in DumpAttrSection()
275 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in DumpDataSection()
280 return record_file_reader_->ReadDataSection(record_callback); in DumpDataSection()
336 size_t attr_index = record_file_reader_->GetAttrIndexOfRecord(&sr); in ProcessSampleRecord()
373 if (!record_file_reader_->ReadAuxData(aux.Cpu(), aux.data->aux_offset, data.get(), size)) { in DumpAuxData()
383 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in ProcessTracingData()
[all …]
Dreport_lib_interface.cpp179 std::unique_ptr<RecordFileReader> record_file_reader_; member in ReportLib
225 if (record_file_reader_ == nullptr) { in OpenRecordFileIfNecessary()
226 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in OpenRecordFileIfNecessary()
227 if (record_file_reader_ == nullptr) { in OpenRecordFileIfNecessary()
230 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFileIfNecessary()
231 auto& meta_info = record_file_reader_->GetMetaInfoFeature(); in OpenRecordFileIfNecessary()
254 if (!record_file_reader_->ReadRecord(record)) { in GetNextSample()
386 attr_index = record_file_reader_->GetAttrIndexOfRecord(current_record_.get()); in FindEventOfCurrentSample()
392 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in CreateEvents()
455 if (feature == -1 || !record_file_reader_->ReadFeatureSection(feature, &feature_section_data_)) { in GetFeatureSection()
Dcmd_report.cpp460 std::unique_ptr<RecordFileReader> record_file_reader_; member in __anon235bfe9f0111::ReportCommand
494 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in Run()
495 if (record_file_reader_ == nullptr) { in Run()
763 auto& meta_info = record_file_reader_->GetMetaInfoFeature(); in ReadMetaInfoFromRecordFile()
773 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in ReadEventAttrFromRecordFile()
808 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ReadFeaturesFromRecordFile()
811 record_file_reader_->ReadFeatureString(PerfFileFormat::FEAT_ARCH); in ReadFeaturesFromRecordFile()
819 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); in ReadFeaturesFromRecordFile()
822 if (record_file_reader_->GetMetaInfoFeature().count("system_wide_collection")) { in ReadFeaturesFromRecordFile()
840 if (record_file_reader_->HasFeature(PerfFileFormat::FEAT_TRACING_DATA)) { in ReadFeaturesFromRecordFile()
[all …]
Dcmd_kmem.cpp347 std::unique_ptr<RecordFileReader> record_file_reader_; member in __anoncbe18e6d0111::KmemCommand
480 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in ReportKmemInfo()
481 if (record_file_reader_ == nullptr) { in ReportKmemInfo()
558 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in ReadEventAttrsFromRecordFile()
569 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ReadFeaturesFromRecordFile()
571 record_file_reader_->ReadFeatureString(PerfFileFormat::FEAT_ARCH); in ReadFeaturesFromRecordFile()
578 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); in ReadFeaturesFromRecordFile()
582 if (record_file_reader_->HasFeature(PerfFileFormat::FEAT_TRACING_DATA)) { in ReadFeaturesFromRecordFile()
584 if (!record_file_reader_->ReadFeatureSection( in ReadFeaturesFromRecordFile()
594 if (!record_file_reader_->ReadDataSection( in ReadSampleTreeFromRecordFile()
Dcmd_report_sample.cpp131 std::unique_ptr<RecordFileReader> record_file_reader_; member in __anon5d136c400111::ReportSampleCommand
206 if (!record_file_reader_->ReadDataSection( in Run()
422 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in OpenRecordFile()
423 if (record_file_reader_ == nullptr) { in OpenRecordFile()
426 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFile()
427 auto& meta_info = record_file_reader_->GetMetaInfoFeature(); in OpenRecordFile()
434 for (EventAttrWithId& attr : record_file_reader_->AttrSection()) { in OpenRecordFile()
441 auto& meta_info = record_file_reader_->GetMetaInfoFeature(); in PrintMetaInfo()
536 sample->set_event_type_id(record_file_reader_->GetAttrIndexOfRecord(&r)); in PrintSampleRecordInProtobuf()
664 event_types_[record_file_reader_->GetAttrIndexOfRecord(&r)].data()); in PrintSampleRecord()
Dcmd_inject.cpp193 record_file_reader_ = RecordFileReader::CreateInstance(input_filename_); in ProcessInputFile()
194 if (!record_file_reader_) { in ProcessInputFile()
197 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ProcessInputFile()
198 if (!record_file_reader_->ReadDataSection( in ProcessInputFile()
232 if (!record_file_reader_->ReadAuxData(aux->Cpu(), aux->data->aux_offset, in ProcessRecord()
439 std::unique_ptr<RecordFileReader> record_file_reader_; member in __anon690e1f400111::InjectCommand