mirror of
https://github.com/google/benchmark.git
synced 2025-03-30 14:10:25 +08:00
move finalize
This commit is contained in:
parent
ed5145afea
commit
1a17ce85fb
@ -520,12 +520,13 @@ void RunInThread(const benchmark::Benchmark::Instance* b,
|
||||
ThreadStats* my_stats = &thread_stats;
|
||||
ResetThreadStats(my_stats);
|
||||
b->Run(iters, thread_id);
|
||||
timer_manager->Finalize();
|
||||
|
||||
{
|
||||
MutexLock l(GetBenchmarkLock());
|
||||
AddThreadStats(total, *my_stats);
|
||||
}
|
||||
|
||||
timer_manager->Finalize();
|
||||
}
|
||||
|
||||
void RunBenchmark(const benchmark::Benchmark::Instance& b,
|
||||
|
Loading…
Reference in New Issue
Block a user