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:
parent
bb61cdc1b5
commit
8e95bdfb74
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user