Go to the documentation of this file.
54 int64_t RoundDouble(
double v) {
return static_cast<int64_t
>(
v + 0.5); }
65 out << inner_indent <<
"\"context\": {\n";
69 out <<
indent << FormatKV(
"date", walltime_value) <<
",\n";
71 out <<
indent << FormatKV(
"num_cpus",
static_cast<int64_t
>(context.
num_cpus))
79 const char build_type[] =
"release";
81 const char build_type[] =
"debug";
83 out <<
indent << FormatKV(
"library_build_type", build_type) <<
"\n";
85 out << inner_indent <<
"},\n";
86 out << inner_indent <<
"\"benchmarks\": [\n";
91 if (reports.empty()) {
101 for (
auto it = reports.begin();
it != reports.end(); ++
it) {
106 if (++it_cp != reports.end()) {
160 << FormatKV(c.first, RoundDouble(c.second));
virtual void ReportRuns(const std::vector< Run > &reports)
void PrintRunData(const Run &report)
static int indent(upb_textprinter *p)
GLsizei const GLchar *const * string
virtual bool ReportContext(const Context &context)
double GetAdjustedCPUTime() const
std::string error_message
std::string benchmark_name
const char * GetTimeUnitString(TimeUnit unit)
const SETUP_TEARDOWN_TESTCONTEXT char * key
std::string GetBigOString(BigO complexity)
double GetAdjustedRealTime() const
std::string StringPrintF(const char *format,...)
GLsizei const GLfloat * value
std::ostream & GetOutputStream() const
std::string LocalDateTimeString()
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:55