Searched defs:counters (Results 1 - 8 of 8) sorted by relevance

/system/extras/simpleperf/
H A Drecord_lib_test.cpp50 std::vector<Counter> counters; local
51 ASSERT_TRUE(perf->ReadCounters(&counters));
52 ASSERT_EQ(counters.size(), 3u);
53 ASSERT_EQ(counters[0].event, "cpu-cycles");
54 ASSERT_EQ(counters[1].event, "cpu-cycles:u");
55 ASSERT_EQ(counters[2].event, "cpu-cycles:k");
56 for (auto& counter : counters) {
75 std::vector<Counter> counters;
76 ASSERT_TRUE(perf->ReadCounters(&counters));
77 ASSERT_EQ(counters
107 std::vector<Counter> counters; local
133 std::vector<Counter> counters; local
[all...]
H A Devent_selection_set.h49 std::vector<CounterInfo> counters; member in struct:CountersInfo
75 // 4. Read counters by calling ReadCounters(), or read mapped event records
128 bool ReadCounters(std::vector<CountersInfo>* counters);
148 // counters for event files closed for cpu hotplug events
H A Drecord_lib_interface.cpp112 bool ReadCounters(std::vector<Counter>* counters) override;
117 bool ReadRawCounters(std::vector<Counter>* counters);
125 // The counters at the last time calling StartCounting().
127 // The accumulated counters of counting periods, excluding
170 bool PerfEventSetForCounting::ReadRawCounters(std::vector<Counter>* counters) { argument
177 counters->resize(s.size());
183 Counter& sum = (*counters)[i];
188 for (CounterInfo& c : info.counters) {
242 bool PerfEventSetForCounting::ReadCounters(std::vector<Counter>* counters) { argument
244 *counters
[all...]
H A Dcmd_stat.cpp116 // counters with other events), the scale of its summary is usually within
334 bool ShowCounters(const std::vector<CountersInfo>& counters,
426 std::vector<CountersInfo> counters; local
447 if (!event_selection_set_.ReadCounters(&counters)) {
454 if (!ShowCounters(counters, duration_in_sec, fp)) {
476 // 6. Read and print counters.
618 bool StatCommand::ShowCounters(const std::vector<CountersInfo>& counters, argument
627 for (auto& counters_info : counters) {
628 for (auto& counter_info : counters_info.counters) {
650 for (auto& counters_info : counters) {
[all...]
H A Devent_selection_set.cpp549 bool EventSelectionSet::ReadCounters(std::vector<CountersInfo>* counters) { argument
550 counters->clear();
557 counters_info.counters = selection.hotplugged_counters;
563 counters_info.counters.push_back(counter);
565 counters->push_back(counters_info);
/system/extras/tests/icachetest/
H A Dicache_main.cpp91 fprintf(stderr, "performance counters not enabled. try \"setprop security.perf_harden 0\"\n");
102 Profiler::Counters counters; local
113 profiler.readCounters(&counters);
116 << counters.getCpuCycles()/double(REPETITIONS) << "\t"
117 << counters.getL1IReferences()/double(REPETITIONS) << "\t"
118 << counters.getMPKI(counters.getL1IMisses()) << "\t"
H A DProfiler.h79 // could return false if performance counters are not supported/enabled
90 } counters[Profiler::EVENT_COUNT]; member in class:utils::Profiler::Counters
97 lhs.counters[i].value -= rhs.counters[i].value;
103 uint64_t getInstructions() const { return counters[INSTRUCTIONS].value; }
104 uint64_t getCpuCycles() const { return counters[CPU_CYCLES].value; }
105 uint64_t getL1DReferences() const { return counters[DCACHE_REFS].value; }
106 uint64_t getL1DMisses() const { return counters[DCACHE_MISSES].value; }
107 uint64_t getL1IReferences() const { return counters[ICACHE_REFS].value; }
108 uint64_t getL1IMisses() const { return counters[ICACHE_MISSE
186 Counters counters; variable
[all...]
/system/netd/server/
H A DTetherControllerTest.cpp353 // IPv4 and IPv6 counters are properly added together.
378 std::string counters = Join(counterLines, "\n") + "\n"; local
379 addIptablesRestoreOutput(counters, counters);
390 counters = Join(counterLines, "\n") + "\n";
391 addIptablesRestoreOutput(counters, counters);
398 std::string expectedError = counters;

Completed in 1977 milliseconds