1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-29 14:30:37 +08:00

perf_counters_test: Reduce counters used

Pixel 6 doesn't support BRANCHES, and only supports two perf
counters.
This commit is contained in:
Jesse Rosenstock 2023-08-21 15:09:39 +02:00 committed by GitHub
parent bb61cdc1b5
commit 8e95bdfb74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,6 @@ ADD_CASES(TC_JSONOut, {{"\"name\": \"BM_WithPauseResume\",$"}});
static void CheckSimple(Results const& e) {
CHECK_COUNTER_VALUE(e, double, "CYCLES", GT, 0);
CHECK_COUNTER_VALUE(e, double, "BRANCHES", GT, 0.0);
}
double withoutPauseResumeInstrCount = 0.0;
@ -88,7 +87,7 @@ int main(int argc, char* argv[]) {
if (!benchmark::internal::PerfCounters::kSupported) {
return 0;
}
benchmark::FLAGS_benchmark_perf_counters = "CYCLES,BRANCHES,INSTRUCTIONS";
benchmark::FLAGS_benchmark_perf_counters = "CYCLES,INSTRUCTIONS";
benchmark::internal::PerfCounters::Initialize();
RunOutputTests(argc, argv);