Home
last modified time | relevance | path

Searched refs:PerfEvents (Results 1 – 11 of 11) sorted by relevance

/developtools/hiperf/include/
Dsubcommand_stat.h95 PerfEvents perfEvents_;
98 float timeStopSec_ = PerfEvents::DEFAULT_TIMEOUT;
116 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents,
119 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents,
122 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents,
126 const std::unique_ptr<PerfEvents::CountEvent> &countEvent, std::string eventName);
128 …static void Report(const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEven…
130 static void GetPerKey(std::string &perKey, const PerfEvents::Summary &summary);
131 …static void FormatComments(const std::unique_ptr<PerfEvents::ReportSum> &reportSum, std::string &c…
132 …static void ReportNormal(const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &cou…
[all …]
Dsubcommand_list.h55 PerfEvents perfEvents_;
Dperf_events.h323 class PerfEvents {
334 PerfEvents();
335 ~PerfEvents();
431 std::function<void(const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &)>;
Dsubcommand_record.h182 PerfEvents perfEvents_;
193 float timeStopSec_ = PerfEvents::DEFAULT_TIMEOUT;
/developtools/hiperf/src/
Dperf_events.cpp45 OHOS::UniqueFd PerfEvents::Open(perf_event_attr &attr, pid_t pid, int cpu, int group_fd, in Open()
58 PerfEvents::PerfEvents() : timeOut_(DEFAULT_TIMEOUT * THOUSANDS), timeReport_(0) in PerfEvents() function in OHOS::Developtools::HiPerf::PerfEvents
64 PerfEvents::~PerfEvents() in ~PerfEvents()
86 bool PerfEvents::IsEventSupport(perf_type_id type, __u64 config) in IsEventSupport()
88 unique_ptr<perf_event_attr> attr = PerfEvents::CreateDefaultAttr(type, config); in IsEventSupport()
98 bool PerfEvents::IsEventAttrSupport(perf_event_attr &attr) in IsEventAttrSupport()
109 bool PerfEvents::SetBranchSampleType(uint64_t value) in SetBranchSampleType()
114 PerfEvents::CreateDefaultAttr(PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); in SetBranchSampleType()
125 bool PerfEvents::AddDefaultEvent(perf_type_id type) in AddDefaultEvent()
136 bool PerfEvents::AddOffCpuEvent() in AddOffCpuEvent()
[all …]
Dsubcommand_stat.cpp161 void SubCommandStat::Report(const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &c… in Report()
195 void SubCommandStat::PrintPerValue(const std::unique_ptr<PerfEvents::ReportSum> &reportSum, const f… in PrintPerValue()
223 void SubCommandStat::InitPerMap(const std::unique_ptr<PerfEvents::ReportSum> &newPerMap, in InitPerMap()
224 const PerfEvents::Summary &summary, VirtualRuntime& virtualInstance) in InitPerMap()
239 void SubCommandStat::GetPerKey(std::string &perKey, const PerfEvents::Summary &summary) in GetPerKey()
253 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents) in ReportDetailInfos()
256 std::map<std::string, std::unique_ptr<PerfEvents::ReportSum>> perMaps; in ReportDetailInfos()
268 auto perMap = std::make_unique<PerfEvents::ReportSum>(PerfEvents::ReportSum {}); in ReportDetailInfos()
286 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents) in ReportNormal()
314 bool SubCommandStat::FindEventCount(const std::map<std::string, std::unique_ptr<PerfEvents::CountEv… in FindEventCount()
[all …]
Dsubcommand_record.cpp640 int frequency = frequency_ != 0 ? frequency_ : PerfEvents::DEFAULT_SAMPLE_FREQUNCY; in SetPerfMaxSampleRate()
702 perfEvents_.SetSampleStackType(PerfEvents::SampleStackType::FP); in PreparePerfEvent()
704 perfEvents_.SetSampleStackType(PerfEvents::SampleStackType::DWARF); in PreparePerfEvent()
Dsubcommand_report.cpp393 std::string name = PerfEvents::GetStaticConfigName( in LoadAttrSection()
/developtools/hiperf/test/unittest/common/native/
Dperf_events_test.cpp43 static void SetAllConfig(PerfEvents &event);
46 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents);
81 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents) in StatCount()
119 void PerfEventsTest::SetAllConfig(PerfEvents &event) in SetAllConfig()
142 static void RunTrack(PerfEvents &event) in RunTrack()
158 PerfEvents event;
177 PerfEvents event;
195 PerfEvents event;
249 PerfEvents event;
285 PerfEvents event;
Dsubcommand_stat_test.cpp1908 std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> countEvents;
1909 std::unique_ptr<PerfEvents::CountEvent> testEvent(std::make_unique<PerfEvents::CountEvent>());
1931 std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> countEvents;
1933 auto countEvent = make_unique<PerfEvents::CountEvent>(PerfEvents::CountEvent {});
1938 std::unique_ptr<PerfEvents::CountEvent> &countEventTmp = countEvents[configName];
Dsubcommand_record_test.cpp399 PerfEvents perfEvents; in TestEvents()