Go to the documentation of this file.
43 #ifdef BENCHMARK_OS_WINDOWS
46 <<
"Color printing is only supported for stdout on windows."
47 " Disabling color printing\n";
57 "Benchmark",
"Time",
"CPU",
"Iterations");
64 str +=
" UserCounters...";
73 for (
const auto& run : reports) {
102 typedef void(PrinterFn)(std::ostream&,
LogColor,
const char*, ...);
112 printer(Out,
COLOR_RED,
"ERROR OCCURRED: \'%s\'",
135 printer(Out,
COLOR_YELLOW,
"%10.2f %s %10.2f %s ", real_time, big_o.c_str(),
136 cpu_time, big_o.c_str());
138 printer(Out,
COLOR_YELLOW,
"%10.0f %% %10.0f %% ", real_time * 100,
142 printer(Out,
COLOR_YELLOW,
"%10.0f %s %10.0f %s ", real_time, timeLabel,
143 cpu_time, timeLabel);
160 printer(Out,
COLOR_DEFAULT,
" %s=%s%s", c.first.c_str(),
s.c_str(),
169 if (!items.empty()) {
std::ostream & GetErrorStream() const
OutputOptions output_options_
virtual bool ReportContext(const Context &context)
GLsizei const GLchar *const * string
virtual void PrintHeader(const Run &report)
UserCounters prev_counters_
double GetAdjustedCPUTime() const
static void PrintBasicContext(std::ostream *out, Context const &context)
std::string FormatString(const char *msg, va_list args)
virtual void PrintRunData(const Run &report)
std::string error_message
void ColorPrintf(std::ostream &out, LogColor color, const char *fmt,...)
virtual void ReportRuns(const std::vector< Run > &reports)
GTEST_API_ const char * fmt
std::string benchmark_name
const char * GetTimeUnitString(TimeUnit unit)
std::string GetBigOString(BigO complexity)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
std::string HumanReadableNumber(double n)
double GetAdjustedRealTime() const
static void IgnoreColorPrint(std::ostream &out, LogColor, const char *fmt,...)
std::ostream & GetOutputStream() const
std::string StrCat(Args &&... args)
bool SameNames(UserCounters const &l, UserCounters const &r)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:48