Home
last modified time | relevance | path

Searched refs:countEvent (Results 1 – 4 of 4) sorted by relevance

/developtools/hiperf/src/
Dsubcommand_stat.cpp341 const std::unique_ptr<PerfEvents::CountEvent> &countEvent, std::string eventName) in GetCommentConfigName() argument
344 if (countEvent == nullptr || eventName.length() == 0) { in GetCommentConfigName()
347 if (countEvent->userOnly) { in GetCommentConfigName()
349 } else if (countEvent->kernelOnly) { in GetCommentConfigName()
394 …string SubCommandStat::GetDetailComments(const std::unique_ptr<PerfEvents::CountEvent> &countEvent, in GetDetailComments() argument
400 if (configName == GetCommentConfigName(countEvent, "sw-cpu-clock")) { in GetDetailComments()
408 if (configName == GetCommentConfigName(countEvent, "sw-task-clock")) { in GetDetailComments()
409 comment += countEvent->used_cpus * scale; in GetDetailComments()
412 if (configName == GetCommentConfigName(countEvent, "hw-cpu-cycles")) { in GetDetailComments()
424 …if (configName == GetCommentConfigName(countEvent, "hw-instructions") && summary.eventCount != 0) { in GetDetailComments()
[all …]
Dperf_events.cpp1018 auto countEvent = make_unique<CountEvent>(CountEvent {}); in StatReport() local
1019 countEvents_[configName] = std::move(countEvent); in StatReport()
1023 std::unique_ptr<CountEvent> &countEvent = countEvents_[configName]; in StatReport() local
1027 countEvent->eventCount += readNoGroupValue.value; in StatReport()
1028 countEvent->time_enabled += readNoGroupValue.time_enabled; in StatReport()
1029 countEvent->time_running += readNoGroupValue.time_running; in StatReport()
1030 countEvent->id = groupId; in StatReport()
1032countEvent->used_cpus = (countEvent->eventCount / 1e9) / (durationInSec / THOUSANDS); in StatReport()
1040countEvent->summaries.emplace_back(fditem.cpu, fditem.pid, readNoGroupValue.value, in StatReport()
/developtools/hiperf/include/
Dsubcommand_stat.h126 const std::unique_ptr<PerfEvents::CountEvent> &countEvent, std::string eventName);
140 …static std::string GetDetailComments(const std::unique_ptr<PerfEvents::CountEvent> &countEvent, do…
/developtools/hiperf/test/unittest/common/native/
Dsubcommand_stat_test.cpp1933 auto countEvent = make_unique<PerfEvents::CountEvent>(PerfEvents::CountEvent {}); variable
1935 countEvents[configName] = std::move(countEvent);