From ea019f3cd8cf8433416f1c42d5e0a7e18fcbcc6f Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Tue, 2 May 2017 22:10:08 +0100 Subject: [PATCH] Allow different counter sets in CSV reporting. --- src/csv_reporter.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/csv_reporter.cc b/src/csv_reporter.cc index 6779815b..5ceb0169 100644 --- a/src/csv_reporter.cc +++ b/src/csv_reporter.cc @@ -137,8 +137,12 @@ void CSVReporter::PrintRunData(const Run & run) { // Print user counters for (const auto &ucn : user_counter_names_) { auto it = run.counters.find(ucn); - CHECK(it != run.counters.end()); - Out << "," << it->second; + if(it == run.counters.end()) { + Out << ","; + } + else { + Out << "," << it->second; + } } Out << '\n'; }