Skip to content

Commit

Permalink
Fix C4459: Rename a function parameter profiler_manager to avoid hi…
Browse files Browse the repository at this point in the history
…ding the global declaration.
  • Loading branch information
fsb4000 committed Aug 18, 2024
1 parent 6126d2a commit 79b0ade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/benchmark_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ BenchmarkReporter::Run CreateRunReport(
void RunInThread(const BenchmarkInstance* b, IterationCount iters,
int thread_id, ThreadManager* manager,
PerfCountersMeasurement* perf_counters_measurement,
ProfilerManager* profiler_manager) {
ProfilerManager* profiler_manager_) {
internal::ThreadTimer timer(
b->measure_process_cpu_time()
? internal::ThreadTimer::CreateProcessCpuTime()
: internal::ThreadTimer::Create());

State st = b->Run(iters, thread_id, &timer, manager,
perf_counters_measurement, profiler_manager);
perf_counters_measurement, profiler_manager_);
BM_CHECK(st.skipped() || st.iterations() >= st.max_iterations)
<< "Benchmark returned before State::KeepRunning() returned false!";
{
Expand Down

0 comments on commit 79b0ade

Please sign in to comment.