diff options
author | Devansh Varshney (देवांश वार्ष्णेय) <varshney.devansh614@gmail.com> | 2023-08-11 15:29:53 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 10:59:53 +0100 |
commit | cbecc8ffc774d22b59d7ca2073827246807a5805 (patch) | |
tree | c4930d346869cd63ff484b7fef95985d543f087f | |
parent | 14961f1cb69edf47fb1b31986be01c554f36bc2c (diff) | |
download | google-benchmark-cbecc8ffc774d22b59d7ca2073827246807a5805.tar.gz |
fix: added benchmark_counters_tabular for file (#1645)
* fix: added benchmark_counters_tabular for file
* fix: only checking the counters_tabular flag
-rw-r--r-- | src/benchmark.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/benchmark.cc b/src/benchmark.cc index 7fb1740..3e9c7f9 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -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); |