benchmark 1.9.4
Loading...
Searching...
No Matches
benchmark::ConsoleReporter Class Reference
Inheritance diagram for benchmark::ConsoleReporter:
Collaboration diagram for benchmark::ConsoleReporter:

Public Types

enum  OutputOptions {
  OO_None = 0 , OO_Color = 1 , OO_Tabular = 2 , OO_ColorTabular = OO_Color | OO_Tabular ,
  OO_Defaults = OO_ColorTabular
}

Public Member Functions

 ConsoleReporter (OutputOptions opts_=OO_Defaults)
bool ReportContext (const Context &context) override
void ReportRuns (const std::vector< Run > &reports) override
Public Member Functions inherited from benchmark::BenchmarkReporter
virtual void ReportRunsConfig (double, bool, IterationCount)
virtual void Finalize ()
void SetOutputStream (std::ostream *out)
void SetErrorStream (std::ostream *err)
std::ostream & GetOutputStream () const
std::ostream & GetErrorStream () const

Protected Member Functions

virtual void PrintRunData (const Run &result)
virtual void PrintHeader (const Run &run)

Protected Attributes

OutputOptions output_options_
size_t name_field_width_
UserCounters prev_counters_
bool printed_header_

Additional Inherited Members

Static Public Member Functions inherited from benchmark::BenchmarkReporter
static void PrintBasicContext (std::ostream *out, Context const &context)

Member Function Documentation

◆ ReportContext()

BENCHMARK_EXPORT bool benchmark::ConsoleReporter::ReportContext ( const Context & context)
overridevirtual

◆ ReportRuns()

BENCHMARK_EXPORT void benchmark::ConsoleReporter::ReportRuns ( const std::vector< Run > & reports)
overridevirtual

The documentation for this class was generated from the following files:
  • include/benchmark/benchmark.h
  • src/console_reporter.cc