Lines Matching refs:it

165     for (auto it = countEvents.begin(); it != countEvents.end(); ++it) {
166 if (!(it->second->summaries.empty())) {
271 for (auto &it : event->second->summaries) {
272 GetPerKey(perKey, it);
275 InitPerMap(perMap, it, g_runtimeInstance);
282 it, configName);
283 perMaps[perKey]->eventCountSum += it.eventCount;
284 if (it.timeRunning < it.timeEnabled && it.timeRunning != 0) {
285 perMaps[perKey]->scaleSum = 1 / (static_cast<double>(it.timeEnabled) / it.timeRunning);
301 for (auto it = countEvents.begin(); it != countEvents.end(); ++it) {
304 std::string configName = it->first;
306 std::string strEventCount = std::to_string(it->second->eventCount);
313 if (it->second->timeRunning < it->second->timeEnabled && it->second->timeRunning != 0) {
314 scale = 1 / (static_cast<double>(it->second->timeEnabled) / it->second->timeRunning);
478 for (auto it = countEvents.begin(); it != countEvents.end(); it++) {
479 std::string configName = it->first;
480 std::string commentConfigName = GetCommentConfigName(it->second, "sw-cpu-clock");
486 if (it->second->timeRunning < it->second->timeEnabled && it->second->timeRunning != 0) {
487 scale = static_cast<double>(it->second->timeEnabled) / it->second->timeRunning;
489 commentConfigName = GetCommentConfigName(it->second, "sw-task-clock");
491 double usedCpus = it->second->usedCpus * scale;
495 commentConfigName = GetCommentConfigName(it->second, "hw-cpu-cycles");
498 ((group_id == it->second->id) ||
502 hz = it->second->eventCount / (running_time_in_sec / scale);
510 commentConfigName = GetCommentConfigName(it->second, "hw-instructions");
511 if (configName == commentConfigName && it->second->eventCount != 0) {
512 std::string cpuSyclesName = GetCommentConfigName(it->second, "hw-cpu-cycles");
515 bool other = FindEventCount(countEvents, cpuSyclesName, it->second->id, cpuCyclesCount,
518 double cpi = static_cast<double>(cpuCyclesCount) / it->second->eventCount;
523 commentConfigName = GetCommentConfigName(it->second, "hw-branch-misses");
525 std::string branchInsName = GetCommentConfigName(it->second, "hw-branch-instructions");
528 bool other = FindEventCount(countEvents, branchInsName, it->second->id,
533 static_cast<double>(it->second->eventCount) / branchInstructionsCount;
538 if (findRunningTime && ((group_id == it->second->id) || (IsMonitoredAtAllTime(main_scale) &&
540 double rate = it->second->eventCount / (running_time_in_sec / scale);
564 for (auto it = countEvents.begin(); it != countEvents.end(); it++) {
565 if ((it->first == "sw-task-clock" || it->first == "sw-task-clock:u" ||
566 it->first == "sw-task-clock:k" || it->first == "sw-cpu-clock" ||
567 it->first == "sw-cpu-clock:u" || it->first == "sw-cpu-clock:k") &&
568 it->second->eventCount != 0u) {
569 group_id = it->second->id;
570 running_time_in_sec = it->second->eventCount / 1e9;
571 if (it->second->timeRunning < it->second->timeEnabled &&
572 it->second->timeRunning != 0) {
574 static_cast<double>(it->second->timeEnabled) / it->second->timeRunning;