Skip to content

Commit

Permalink
fix: added benchmark_counters_tabular for file (#1645)
Browse files Browse the repository at this point in the history
* fix: added benchmark_counters_tabular for file

* fix: only checking the counters_tabular flag
  • Loading branch information
varshneydevansh authored Aug 11, 2023
1 parent 14961f1 commit cbecc8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,9 @@ size_t RunSpecifiedBenchmarks(BenchmarkReporter* display_reporter,
}
if (!file_reporter) {
default_file_reporter = internal::CreateReporter(
FLAGS_benchmark_out_format, ConsoleReporter::OO_None);
FLAGS_benchmark_out_format, FLAGS_benchmark_counters_tabular
? ConsoleReporter::OO_Tabular
: ConsoleReporter::OO_None);
file_reporter = default_file_reporter.get();
}
file_reporter->SetOutputStream(&output_file);
Expand Down

0 comments on commit cbecc8f

Please # to comment.