Skip to content

Commit cbecc8f

Browse files
fix: added benchmark_counters_tabular for file (#1645)
* fix: added benchmark_counters_tabular for file * fix: only checking the counters_tabular flag
1 parent 14961f1 commit cbecc8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/benchmark.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,9 @@ size_t RunSpecifiedBenchmarks(BenchmarkReporter* display_reporter,
575575
}
576576
if (!file_reporter) {
577577
default_file_reporter = internal::CreateReporter(
578-
FLAGS_benchmark_out_format, ConsoleReporter::OO_None);
578+
FLAGS_benchmark_out_format, FLAGS_benchmark_counters_tabular
579+
? ConsoleReporter::OO_Tabular
580+
: ConsoleReporter::OO_None);
579581
file_reporter = default_file_reporter.get();
580582
}
581583
file_reporter->SetOutputStream(&output_file);

0 commit comments

Comments
 (0)