Home
last modified time | relevance | path

Searched refs:CounterSum (Results 1 – 3 of 3) sorted by relevance

/system/extras/simpleperf/
Dcmd_stat_impl.h36 struct CounterSum { struct
53 CounterSum operator+(const CounterSum& other) const { argument
54 CounterSum res; argument
61 CounterSum operator-(const CounterSum& other) const {
62 CounterSum res; argument
215 std::unordered_map<uint64_t, CounterSum> sum_map; in AddCountersForOneEventType()
224 CounterSum& sum = sum_map[key]; in AddCountersForOneEventType()
225 CounterSum add; in AddCountersForOneEventType()
233 const CounterSum& sum = pair.second; in AddCountersForOneEventType()
248 void AddSummary(const CountersInfo& info, pid_t tid, int cpu, const CounterSum& sum) { in AddSummary()
Dcmd_stat.cpp448 std::vector<std::vector<CounterSum>> last_sum_values_;
788 std::vector<CounterSum>& last_sum = last_sum_values_[i]; in AdjustToIntervalOnlyValues()
795 CounterSum new_sum; in AdjustToIntervalOnlyValues()
797 CounterSum delta = new_sum - last_sum[j]; in AdjustToIntervalOnlyValues()
Dcmd_stat_test.cpp357 CounterSum a; in TEST()
362 CounterSum b = a + a; in TEST()
366 CounterSum c = a - a; in TEST()