benchmark 1.8.3
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
benchmark::ConsoleReporter Class Reference
Inheritance diagram for benchmark::ConsoleReporter:
benchmark::BenchmarkReporter

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) BENCHMARK_OVERRIDE
 
void ReportRuns (const std::vector< Run > &reports) BENCHMARK_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 &report)
 
virtual void PrintHeader (const Run &report)
 

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)
virtual

◆ ReportRuns()

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

The documentation for this class was generated from the following files: