Public Member Functions | |
XmlFormatter (std::string out="stats.xml") | |
virtual void | writeTitle (const std::vector< std::string > &titles, const std::vector< std::string > &values) |
write the titles of the columns or groups. | |
virtual void | writeResult (const std::string &val, std::vector< BenchResult > results) |
write the result information for value val. | |
virtual void | finish () |
Called after all benchmarks have run. |
void XmlFormatter::finish | ( | ) | [virtual] |
Called after all benchmarks have run.
This is a good place to close any open file handles.
Reimplemented from BenchFormatter.
void XmlFormatter::writeResult | ( | const std::string & | val, |
std::vector< BenchResult > | results | ||
) | [virtual] |
write the result information for value val.
val | const std::string& the value. |
results | std::vector<BenchResult> a vector of benchmark results. |
The benchmark results appear in the order the corresponding benchmarks were added to the BenchmarkGroup.
Implements BenchFormatter.
void XmlFormatter::writeTitle | ( | const std::vector< std::string > & | titles, |
const std::vector< std::string > & | values | ||
) | [virtual] |
write the titles of the columns or groups.
titles | std::vector<std::string>&. |
Implements BenchFormatter.