Lines Matching refs:values
288 const std::vector<VendorAtomValue> &values, in reportVendorAtom() argument
293 .values = std::move(values)}; in reportVendorAtom()
375 std::vector<uint64_t> values; in readProcStat() local
383 values.push_back(value); in readProcStat()
385 fields[field_name] = values; in readProcStat()
513 const std::vector<uint64_t> &values = itr->second; in getValueFromParsedProcStat() local
515 if (values.size() == 0) { in getValueFromParsedProcStat()
519 if (offset >= 0 && offset >= values.size()) { in getValueFromParsedProcStat()
524 *output = values.at(offset); in getValueFromParsedProcStat()
528 *output = std::accumulate(values.begin(), values.end(), 0); in getValueFromParsedProcStat()
626 std::vector<VendorAtomValue> values = genPixelMmMetricsPerHour(); in logPixelMmMetricsPerHour() local
628 if (values.size() != 0) { in logPixelMmMetricsPerHour()
630 reportVendorAtom(stats_client, PixelAtoms::Atom::kPixelMmMetricsPerHour, values, in logPixelMmMetricsPerHour()
654 std::vector<VendorAtomValue> values(last_value_index + 1, tmp); in genPixelMmMetricsPerHour() local
656 fillAtomValues(kMmMetricsPerHourInfo, vmstat, &prev_hour_vmstat_, &values); in genPixelMmMetricsPerHour()
657 fillAtomValues(kMmMetricsPerHourInfo, meminfo, nullptr, &values); in genPixelMmMetricsPerHour()
659 values[PixelMmMetricsPerHour::kIonTotalPoolsFieldNumber - kVendorAtomOffset] = tmp; in genPixelMmMetricsPerHour()
661 values[PixelMmMetricsPerHour::kGpuMemoryFieldNumber - kVendorAtomOffset] = tmp; in genPixelMmMetricsPerHour()
662 fillPressureStallAtom(&values); in genPixelMmMetricsPerHour()
664 return values; in genPixelMmMetricsPerHour()
668 std::vector<VendorAtomValue> values = genPixelMmMetricsPerDay(); in logPixelMmMetricsPerDay() local
670 if (values.size() != 0) { in logPixelMmMetricsPerDay()
672 reportVendorAtom(stats_client, PixelAtoms::Atom::kPixelMmMetricsPerDay, values, in logPixelMmMetricsPerDay()
702 std::vector<VendorAtomValue> values(last_value_index + 1, tmp); in genPixelMmMetricsPerDay() local
704 if (!fillAtomValues(kMmMetricsPerDayInfo, vmstat, &prev_day_vmstat_, &values)) { in genPixelMmMetricsPerDay()
713 if (!fillAtomValues(kMmMetricsPerDayInfo, pixel_vmstat, &prev_day_pixel_vmstat_, &values)) { in genPixelMmMetricsPerDay()
720 &prev_kswapd_pid_, &prev_kswapd_stime_, &values); in genPixelMmMetricsPerDay()
722 &prev_kcompactd_pid_, &prev_kcompactd_stime_, &values); in genPixelMmMetricsPerDay()
723 fillDirectReclaimStatAtom(direct_reclaim, &values); in genPixelMmMetricsPerDay()
724 fillCompactionDurationStatAtom(compaction_duration, &values); in genPixelMmMetricsPerDay()
726 if (!fillProcStat(kProcStatInfo, procstat, &prev_procstat_, &values)) { in genPixelMmMetricsPerDay()
733 values.clear(); in genPixelMmMetricsPerDay()
736 return values; in genPixelMmMetricsPerDay()
923 std::vector<VendorAtomValue> *values) { in fillCompactionDurationStatAtom() argument
933 if (values->size() < size) in fillCompactionDurationStatAtom()
934 values->resize(size); in fillCompactionDurationStatAtom()
944 (*values)[start_idx + i] = tmp; in fillCompactionDurationStatAtom()
988 std::vector<VendorAtomValue> *values) { in fillDirectReclaimStatAtom() argument
1000 if (values->size() < size) in fillDirectReclaimStatAtom()
1001 values->resize(size); in fillDirectReclaimStatAtom()
1006 (*values)[start_idx + i] = tmp; in fillDirectReclaimStatAtom()
1370 void MmMetricsReporter::fillPressureStallAtom(std::vector<VendorAtomValue> *values) { in fillPressureStallAtom() argument
1384 if (values->size() < min_value_size) in fillPressureStallAtom()
1385 values->resize(min_value_size); in fillPressureStallAtom()
1400 if (metric_idx >= values->size()) { in fillPressureStallAtom()
1405 (*values)[metric_idx] = tmp; in fillPressureStallAtom()
1423 if (metric_idx >= values->size()) { in fillPressureStallAtom()
1428 (*values)[metric_idx] = tmp; in fillPressureStallAtom()
1463 std::vector<VendorAtomValue> values; in reportCmaStatusAtom() local
1469 values.push_back(tmp); in reportCmaStatusAtom()
1477 fillAtomValues(metrics_info, cma_stat, &prev_cma_stat, &values); in reportCmaStatusAtom()
1480 if (values.size() < size) { in reportCmaStatusAtom()
1481 values.resize(size, tmp); in reportCmaStatusAtom()
1484 values[cma_name_offset - kVendorAtomOffset] = tmp; in reportCmaStatusAtom()
1488 reportVendorAtom(stats_client, atom_id, values, "CmaStatus"); in reportCmaStatusAtom()