From cbecc8ffc774d22b59d7ca2073827246807a5805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devansh=20Varshney=20=28=E0=A4=A6=E0=A5=87=E0=A4=B5?= =?UTF-8?q?=E0=A4=BE=E0=A4=82=E0=A4=B6=20=E0=A4=B5=E0=A4=BE=E0=A4=B0?= =?UTF-8?q?=E0=A5=8D=E0=A4=B7=E0=A5=8D=E0=A4=A3=E0=A5=87=E0=A4=AF=29?= Date: Fri, 11 Aug 2023 15:29:53 +0530 Subject: [PATCH] fix: added benchmark_counters_tabular for file (#1645) * fix: added benchmark_counters_tabular for file * fix: only checking the counters_tabular flag --- src/benchmark.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/benchmark.cc b/src/benchmark.cc index 7fb1740af3..3e9c7f9642 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);