Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
benchmark::ConsoleReporter Class Reference

#include <benchmark.h>

Inheritance diagram for benchmark::ConsoleReporter:
Inheritance graph
[legend]

Public Types

enum  OutputOptions {
  OO_None = 0, OO_Color = 1, OO_Tabular = 2, OO_ColorTabular = OO_Color | OO_Tabular,
  OO_Defaults = OO_ColorTabular, OO_None = 0, OO_Color = 1, OO_Tabular = 2,
  OO_ColorTabular = OO_Color | OO_Tabular, OO_Defaults = OO_ColorTabular, OO_None = 0, OO_Color = 1,
  OO_Tabular = 2, OO_ColorTabular = OO_Color | OO_Tabular, OO_Defaults = OO_ColorTabular
}
 
enum  OutputOptions {
  OO_None = 0, OO_Color = 1, OO_Tabular = 2, OO_ColorTabular = OO_Color | OO_Tabular,
  OO_Defaults = OO_ColorTabular, OO_None = 0, OO_Color = 1, OO_Tabular = 2,
  OO_ColorTabular = OO_Color | OO_Tabular, OO_Defaults = OO_ColorTabular, OO_None = 0, OO_Color = 1,
  OO_Tabular = 2, OO_ColorTabular = OO_Color | OO_Tabular, OO_Defaults = OO_ColorTabular
}
 
enum  OutputOptions {
  OO_None = 0, OO_Color = 1, OO_Tabular = 2, OO_ColorTabular = OO_Color | OO_Tabular,
  OO_Defaults = OO_ColorTabular, OO_None = 0, OO_Color = 1, OO_Tabular = 2,
  OO_ColorTabular = OO_Color | OO_Tabular, OO_Defaults = OO_ColorTabular, 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)
 
 ConsoleReporter (OutputOptions opts_=OO_Defaults)
 
 ConsoleReporter (OutputOptions opts_=OO_Defaults)
 
virtual bool ReportContext (const Context &context)
 
virtual bool ReportContext (const Context &context)
 
virtual bool ReportContext (const Context &context) BENCHMARK_OVERRIDE
 
virtual void ReportRuns (const std::vector< Run > &reports)
 
virtual void ReportRuns (const std::vector< Run > &reports)
 
virtual void ReportRuns (const std::vector< Run > &reports) BENCHMARK_OVERRIDE
 
- Public Member Functions inherited from benchmark::BenchmarkReporter
 BenchmarkReporter ()
 
 BenchmarkReporter ()
 
 BenchmarkReporter ()
 
virtual void Finalize ()
 
virtual void Finalize ()
 
virtual void Finalize ()
 
std::ostream & GetErrorStream () const
 
std::ostream & GetErrorStream () const
 
std::ostream & GetErrorStream () const
 
std::ostream & GetOutputStream () const
 
std::ostream & GetOutputStream () const
 
std::ostream & GetOutputStream () const
 
void SetErrorStream (std::ostream *err)
 
void SetErrorStream (std::ostream *err)
 
void SetErrorStream (std::ostream *err)
 
void SetOutputStream (std::ostream *out)
 
void SetOutputStream (std::ostream *out)
 
void SetOutputStream (std::ostream *out)
 
virtual ~BenchmarkReporter ()
 
virtual ~BenchmarkReporter ()
 
virtual ~BenchmarkReporter ()
 

Protected Member Functions

virtual void PrintHeader (const Run &report)
 
virtual void PrintHeader (const Run &report)
 
virtual void PrintHeader (const Run &report)
 
virtual void PrintRunData (const Run &report)
 
virtual void PrintRunData (const Run &report)
 
virtual void PrintRunData (const Run &report)
 

Protected Attributes

size_t name_field_width_
 
OutputOptions output_options_
 
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)
 
static void PrintBasicContext (std::ostream *out, Context const &context)
 
static void PrintBasicContext (std::ostream *out, Context const &context)
 

Detailed Description

Definition at line 1571 of file benchmark/include/benchmark/benchmark.h.

Member Enumeration Documentation

◆ OutputOptions [1/3]

Enumerator
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 

Definition at line 1134 of file bloaty/third_party/protobuf/third_party/benchmark/include/benchmark/benchmark.h.

◆ OutputOptions [2/3]

Enumerator
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 

Definition at line 1134 of file protobuf/third_party/benchmark/include/benchmark/benchmark.h.

◆ OutputOptions [3/3]

Enumerator
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 

Definition at line 1573 of file benchmark/include/benchmark/benchmark.h.

Constructor & Destructor Documentation

◆ ConsoleReporter() [1/3]

benchmark::ConsoleReporter::ConsoleReporter ( OutputOptions  opts_ = OO_Defaults)
inlineexplicit

Definition at line 1580 of file benchmark/include/benchmark/benchmark.h.

◆ ConsoleReporter() [2/3]

benchmark::ConsoleReporter::ConsoleReporter ( OutputOptions  opts_ = OO_Defaults)
inlineexplicit

◆ ConsoleReporter() [3/3]

benchmark::ConsoleReporter::ConsoleReporter ( OutputOptions  opts_ = OO_Defaults)
inlineexplicit

Member Function Documentation

◆ PrintHeader() [1/3]

virtual void benchmark::ConsoleReporter::PrintHeader ( const Run report)
protectedvirtual

◆ PrintHeader() [2/3]

virtual void benchmark::ConsoleReporter::PrintHeader ( const Run report)
protectedvirtual

◆ PrintHeader() [3/3]

void benchmark::ConsoleReporter::PrintHeader ( const Run report)
protectedvirtual

Definition at line 55 of file benchmark/src/console_reporter.cc.

◆ PrintRunData() [1/3]

virtual void benchmark::ConsoleReporter::PrintRunData ( const Run report)
protectedvirtual

◆ PrintRunData() [2/3]

virtual void benchmark::ConsoleReporter::PrintRunData ( const Run report)
protectedvirtual

◆ PrintRunData() [3/3]

void benchmark::ConsoleReporter::PrintRunData ( const Run report)
protectedvirtual

Definition at line 115 of file benchmark/src/console_reporter.cc.

◆ ReportContext() [1/3]

virtual bool benchmark::ConsoleReporter::ReportContext ( const Context context)
virtual

◆ ReportContext() [2/3]

virtual bool benchmark::ConsoleReporter::ReportContext ( const Context context)
virtual

◆ ReportContext() [3/3]

bool benchmark::ConsoleReporter::ReportContext ( const Context context)
virtual

Implements benchmark::BenchmarkReporter.

Definition at line 36 of file benchmark/src/console_reporter.cc.

◆ ReportRuns() [1/3]

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

◆ ReportRuns() [2/3]

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

◆ ReportRuns() [3/3]

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

Implements benchmark::BenchmarkReporter.

Definition at line 71 of file benchmark/src/console_reporter.cc.

Member Data Documentation

◆ name_field_width_

size_t benchmark::ConsoleReporter::name_field_width_
protected

Definition at line 1594 of file benchmark/include/benchmark/benchmark.h.

◆ output_options_

OutputOptions benchmark::ConsoleReporter::output_options_
protected

Definition at line 1593 of file benchmark/include/benchmark/benchmark.h.

◆ prev_counters_

UserCounters benchmark::ConsoleReporter::prev_counters_
protected

Definition at line 1595 of file benchmark/include/benchmark/benchmark.h.

◆ printed_header_

bool benchmark::ConsoleReporter::printed_header_
protected

Definition at line 1596 of file benchmark/include/benchmark/benchmark.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:57