aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevansh Varshney (देवांश वार्ष्णेय) <varshney.devansh614@gmail.com>2023-08-11 15:29:53 +0530
committerGitHub <noreply@github.com>2023-08-11 10:59:53 +0100
commitcbecc8ffc774d22b59d7ca2073827246807a5805 (patch)
treec4930d346869cd63ff484b7fef95985d543f087f
parent14961f1cb69edf47fb1b31986be01c554f36bc2c (diff)
downloadgoogle-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.cc4
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);