Home
last modified time | relevance | path

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

/developtools/hiperf/src/
Dsubcommand_stat.cpp336 const std::unique_ptr<PerfEvents::CountEvent> &countEvent, std::string eventName) in GetCommentConfigName() argument
339 if (countEvent == nullptr || eventName.length() == 0) { in GetCommentConfigName()
342 if (countEvent->userOnly) { in GetCommentConfigName()
344 } else if (countEvent->kernelOnly) { in GetCommentConfigName()
389 …string SubCommandStat::GetDetailComments(const std::unique_ptr<PerfEvents::CountEvent> &countEvent, in GetDetailComments() argument
395 if (configName == GetCommentConfigName(countEvent, "sw-cpu-clock")) { in GetDetailComments()
403 if (configName == GetCommentConfigName(countEvent, "sw-task-clock")) { in GetDetailComments()
404 comment += countEvent->used_cpus * scale; in GetDetailComments()
407 if (configName == GetCommentConfigName(countEvent, "hw-cpu-cycles")) { in GetDetailComments()
419 …if (configName == GetCommentConfigName(countEvent, "hw-instructions") && summary.eventCount != 0) { in GetDetailComments()
[all …]
Dperf_events.cpp1043 auto countEvent = make_unique<CountEvent>(CountEvent {}); in StatReport() local
1044 countEvents_[configName] = std::move(countEvent); in StatReport()
1048 std::unique_ptr<CountEvent> &countEvent = countEvents_[configName]; in StatReport() local
1052 countEvent->eventCount += readNoGroupValue.value; in StatReport()
1053 countEvent->time_enabled += readNoGroupValue.time_enabled; in StatReport()
1054 countEvent->time_running += readNoGroupValue.time_running; in StatReport()
1055 countEvent->id = groupId; in StatReport()
1057countEvent->used_cpus = (countEvent->eventCount / 1e9) / (durationInSec / THOUSANDS); in StatReport()
1065countEvent->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.cpp1935 auto countEvent = make_unique<PerfEvents::CountEvent>(PerfEvents::CountEvent {}); variable
1937 countEvents[configName] = std::move(countEvent);