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

benchmark.cc: Fix clang-tidy error

This commit is contained in:
Jesse Rosenstock 2023-08-21 13:43:32 +02:00 committed by GitHub
parent eb725a8939
commit 0330926144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,8 @@ State::State(std::string name, IterationCount max_iters,
// won't have the flag. Inserting them now also reduces the allocations
// during the benchmark.
if (perf_counters_measurement_) {
for (const std::string& counter_name : perf_counters_measurement_->names()) {
for (const std::string& counter_name :
perf_counters_measurement_->names()) {
counters[counter_name] = Counter(0.0, Counter::kAvgIterations);
}
}