Public Member Functions | Private Attributes | List of all members
grpc::testing::Reporter Class Referenceabstract

#include <report.h>

Inheritance diagram for grpc::testing::Reporter:
Inheritance graph
[legend]

Public Member Functions

string name () const
 
virtual void ReportCpuUsage (const ScenarioResult &result)=0
 
 Reporter (const string &name)
 
virtual void ReportLatency (const ScenarioResult &result)=0
 
virtual void ReportPollCount (const ScenarioResult &result)=0
 
virtual void ReportQPS (const ScenarioResult &result)=0
 
virtual void ReportQPSPerCore (const ScenarioResult &result)=0
 
virtual void ReportQueriesPerCpuSec (const ScenarioResult &result)=0
 
virtual void ReportTimes (const ScenarioResult &result)=0
 
virtual ~Reporter ()
 

Private Attributes

const string name_
 

Detailed Description

Interface for all reporters.

Definition at line 36 of file report.h.

Constructor & Destructor Documentation

◆ Reporter()

grpc::testing::Reporter::Reporter ( const string &  name)
inlineexplicit

Construct a reporter with the given name.

Definition at line 39 of file report.h.

◆ ~Reporter()

virtual grpc::testing::Reporter::~Reporter ( )
inlinevirtual

Definition at line 41 of file report.h.

Member Function Documentation

◆ name()

string grpc::testing::Reporter::name ( ) const
inline

Returns this reporter's name.

Names are constants, set at construction time.

Definition at line 46 of file report.h.

◆ ReportCpuUsage()

virtual void grpc::testing::Reporter::ReportCpuUsage ( const ScenarioResult &  result)
pure virtual

◆ ReportLatency()

virtual void grpc::testing::Reporter::ReportLatency ( const ScenarioResult &  result)
pure virtual

Reports latencies for the 50, 90, 95, 99 and 99.9 percentiles, in ms.

Implemented in grpc::testing::RpcReporter, grpc::testing::JsonReporter, grpc::testing::GprLogReporter, and grpc::testing::CompositeReporter.

◆ ReportPollCount()

virtual void grpc::testing::Reporter::ReportPollCount ( const ScenarioResult &  result)
pure virtual

Reports client and server poll usage inside completion queue.

Implemented in grpc::testing::RpcReporter, grpc::testing::JsonReporter, grpc::testing::GprLogReporter, and grpc::testing::CompositeReporter.

◆ ReportQPS()

virtual void grpc::testing::Reporter::ReportQPS ( const ScenarioResult &  result)
pure virtual

◆ ReportQPSPerCore()

virtual void grpc::testing::Reporter::ReportQPSPerCore ( const ScenarioResult &  result)
pure virtual

◆ ReportQueriesPerCpuSec()

virtual void grpc::testing::Reporter::ReportQueriesPerCpuSec ( const ScenarioResult &  result)
pure virtual

◆ ReportTimes()

virtual void grpc::testing::Reporter::ReportTimes ( const ScenarioResult &  result)
pure virtual

Reports system and user time for client and server systems.

Implemented in grpc::testing::RpcReporter, grpc::testing::JsonReporter, grpc::testing::GprLogReporter, and grpc::testing::CompositeReporter.

Member Data Documentation

◆ name_

const string grpc::testing::Reporter::name_
private

Definition at line 70 of file report.h.


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


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