1
0
mirror of https://github.com/google/benchmark.git synced 2025-03-30 14:10:25 +08:00

move finalize

This commit is contained in:
Eric Fiselier 2015-02-18 16:38:55 -05:00
parent ed5145afea
commit 1a17ce85fb

View File

@ -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,