Improved speed and robustness of perf log.

This commit is contained in:
Pedro Pinto committed 2018-12-07 19:16:41 +00:00
1 parent 8cfca8e40e
commit 5e1c4143db
4 files changed
+142 -100

No files matched your search

+5 -2
View File
@@ -826,8 +826,11 @@ BENCHMARK(fix_time_stamp);
static void perf_log(benchmark::State &state) {
trace::PerfLog l;
for (auto _ : state)
l.log(trace::CorID{"sim", 0}, "this", 1, 2, "txt", 3);
for (auto _ : state) {
for (int i = 0; i < 10000; i++)
l.log(trace::CorID{"sim", 0}, "this", i, 2, "txt", 3);
l.store_log_entries();
}
}
BENCHMARK(perf_log);