1
0
mirror of https://github.com/google/benchmark.git synced 2025-03-28 21:10:58 +08:00

fix: added benchmark_counters_tabular for file ()

* fix: added benchmark_counters_tabular for file

* fix: only checking the counters_tabular flag
This commit is contained in:
Devansh Varshney (देवांश वार्ष्णेय) 2023-08-11 15:29:53 +05:30 committed by GitHub
parent 14961f1cb6
commit cbecc8ffc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);