Home
last modified time | relevance | path

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

/developtools/hiperf/src/
Dperf_file_writer.cpp400 bool PerfFileWriter::AddNrCpusFeature(FEATURE feature, uint32_t nrCpusAvailable, in AddNrCpusFeature() argument
406 std::make_unique<PerfFileSectionNrCpus>(feature, nrCpusAvailable, nrCpusOnline)); in AddNrCpusFeature()
414 bool PerfFileWriter::AddEventDescFeature(FEATURE feature, in AddEventDescFeature() argument
419 featureSections_.emplace_back(std::make_unique<PerfFileSectionEventDesc>(feature, eventDesces)); in AddEventDescFeature()
426 bool PerfFileWriter::AddStringFeature(FEATURE feature, std::string string) in AddStringFeature() argument
428 HLOGV("add feature '%s' string '%s'", PerfFileSection::GetFeatureName(feature).c_str(), in AddStringFeature()
430 featureSections_.emplace_back(std::make_unique<PerfFileSectionString>(feature, string)); in AddStringFeature()
433 header_.features[(int)feature / BITS_IN_BYTE] |= 1 << ((int)feature % BITS_IN_BYTE); // bit in AddStringFeature()
437 bool PerfFileWriter::AddBoolFeature(FEATURE feature) in AddBoolFeature() argument
440 return AddU64Feature(feature, 1u); in AddBoolFeature()
[all …]
Dperf_file_reader.cpp367 const std::string PerfFileReader::GetFeatureString(const FEATURE feature) const in GetFeatureString()
369 std::string featureName = PerfFileSection::GetFeatureName(feature); in GetFeatureString()
371 if (!IsFeatrureStringSection(feature)) { in GetFeatureString()
374 const PerfFileSection *featureSection = GetFeatureSection(feature); in GetFeatureString()
386 const PerfFileSection *PerfFileReader::GetFeatureSection(FEATURE feature) const in GetFeatureSection()
391 if (it->featureId_ == feature) { in GetFeatureSection()
403 for (FEATURE feature : features_) { in ReadFeatureSection() local
412 HLOGV("process feature %d:%s", feature, PerfFileSection::GetFeatureName(feature).c_str()); in ReadFeatureSection()
427 if (IsFeatrureStringSection(feature)) { in ReadFeatureSection()
429 std::make_unique<PerfFileSectionString>(feature, (char *)&buf[0], buf.size())); in ReadFeatureSection()
[all …]
Dsubcommand_dump.cpp238 for (auto feature : features) { in DumpPrintFileHeader() local
239 PrintIndent(indent, "feature: %s\n", PerfFileSection::GetFeatureName(feature).c_str()); in DumpPrintFileHeader()
479 for (auto feature : features) { in DumpFeaturePortion() local
480 PrintIndent(LEVEL1, "feature %d:%s\n", feature, in DumpFeaturePortion()
481 PerfFileSection::GetFeatureName(feature).c_str()); in DumpFeaturePortion()
/developtools/hiperf/include/
Dperf_file_writer.h49 bool AddNrCpusFeature(FEATURE feature, uint32_t nrCpusAvailable, uint32_t nrCpusOnline);
50 bool AddEventDescFeature(FEATURE feature, const std::vector<AttrWithId> &eventDesces);
51 bool AddStringFeature(FEATURE feature, std::string string);
52 bool AddU64Feature(FEATURE feature, uint64_t v);
53 bool AddBoolFeature(FEATURE feature);
Dperf_file_reader.h49 const PerfFileSection *GetFeatureSection(FEATURE feature) const;
52 const std::string GetFeatureString(const FEATURE feature) const;
/developtools/profiler/trace_analyzer/
Dchangelog.txt14 no feature changed, just fix coding style