Lines Matching defs:counters
32 GTEST_SKIP() << "Performance counters not supported.\n";
47 // counters
53 // number of counters has to be two, not zero
89 auto counters = PerfCounters::Create({kGenericPerfEvent1});
90 EXPECT_EQ(counters.num_counters(), 1);
92 EXPECT_TRUE(counters.Snapshot(&values1));
95 EXPECT_TRUE(counters.Snapshot(&values2));
105 auto counters =
107 EXPECT_EQ(counters.num_counters(), 2);
109 EXPECT_TRUE(counters.Snapshot(&values1));
113 EXPECT_TRUE(counters.Snapshot(&values2));
120 // However we cannot make assumptions beyond 2 HW counters due to Pixel 6.
126 std::vector<PerfCounters> counters(2);
127 for (auto& counter : counters) {
131 EXPECT_TRUE(counters[0].Snapshot(&values));
132 EXPECT_TRUE(counters[1].Snapshot(&values));
138 // counters) at this date,
145 // This means we will try 10 counters but we can only guarantee
170 // Start all counters together to see if they hold
222 // We need to first set up the counters, then start the threads, so the
223 // threads would inherit the counters. But later, we need to first destroy
224 // the thread pool (so all the work finishes), then measure the counters. So
227 auto counters =
230 counters.Snapshot(before);
232 counters.Snapshot(after);
272 // counters) at this date,