Commit ea019f3c by Joao Paulo Magalhaes

Allow different counter sets in CSV reporting.

parent 3db6254c
......@@ -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';
}
......
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