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 MakeComments(const std::unique_ptr<PerfEvents::ReportSum> &reportSum, std::string &com…
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 {
335 PerfEvents();
336 ~PerfEvents();
432 std::function<void(const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &)>;
Dsubcommand_record.h197 PerfEvents perfEvents_;
211 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.cpp155 void SubCommandStat::Report(const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &c… in Report()
189 void SubCommandStat::PrintPerValue(const std::unique_ptr<PerfEvents::ReportSum> &reportSum, const f… in PrintPerValue()
219 void SubCommandStat::InitPerMap(const std::unique_ptr<PerfEvents::ReportSum> &newPerMap, in InitPerMap()
220 const PerfEvents::Summary &summary, VirtualRuntime& virtualInstance) in InitPerMap()
235 void SubCommandStat::GetPerKey(std::string &perKey, const PerfEvents::Summary &summary) in GetPerKey()
249 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents) in ReportDetailInfos()
252 std::map<std::string, std::unique_ptr<PerfEvents::ReportSum>> perMaps; in ReportDetailInfos()
263 auto perMap = std::make_unique<PerfEvents::ReportSum>(PerfEvents::ReportSum {}); in ReportDetailInfos()
281 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents) in ReportNormal()
309 bool SubCommandStat::FindEventCount(const std::map<std::string, std::unique_ptr<PerfEvents::CountEv… in FindEventCount()
[all …]
Dsubcommand_record.cpp675 int frequency = frequency_ != 0 ? frequency_ : PerfEvents::DEFAULT_SAMPLE_FREQUNCY; in SetPerfMaxSampleRate()
684 …int newRate = frequency > static_cast<int>(PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE) ? frequency : in SetPerfMaxSampleRate()
685 static_cast<int>(PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE); in SetPerfMaxSampleRate()
771 perfEvents_.SetSampleStackType(PerfEvents::SampleStackType::FP); in PreparePerfEvent()
773 perfEvents_.SetSampleStackType(PerfEvents::SampleStackType::DWARF); in PreparePerfEvent()
Dsubcommand_report.cpp404 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);
87 const std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> &countEvents) in StatCount()
125 void PerfEventsTest::SetAllConfig(PerfEvents &event) in SetAllConfig()
148 static void RunTrack(PerfEvents &event) in RunTrack()
164 PerfEvents event;
183 PerfEvents event;
201 PerfEvents event;
255 PerfEvents event;
291 PerfEvents event;
Dsubcommand_stat_test.cpp1910 std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> countEvents;
1911 std::unique_ptr<PerfEvents::CountEvent> testEvent(std::make_unique<PerfEvents::CountEvent>());
1933 std::map<std::string, std::unique_ptr<PerfEvents::CountEvent>> countEvents;
1935 auto countEvent = make_unique<PerfEvents::CountEvent>(PerfEvents::CountEvent {});
1940 std::unique_ptr<PerfEvents::CountEvent> &countEventTmp = countEvents[configName];
Dsubcommand_record_test.cpp417 PerfEvents perfEvents; in TestEvents()