Commit ea019f3c by Joao Paulo Magalhaes

Allow different counter sets in CSV reporting.

parent 3db6254c
...@@ -137,9 +137,13 @@ void CSVReporter::PrintRunData(const Run & run) { ...@@ -137,9 +137,13 @@ void CSVReporter::PrintRunData(const Run & run) {
// Print user counters // Print user counters
for (const auto &ucn : user_counter_names_) { for (const auto &ucn : user_counter_names_) {
auto it = run.counters.find(ucn); auto it = run.counters.find(ucn);
CHECK(it != run.counters.end()); if(it == run.counters.end()) {
Out << ",";
}
else {
Out << "," << it->second; Out << "," << it->second;
} }
}
Out << '\n'; Out << '\n';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment