|
|
@ -85,11 +85,11 @@ class CompositeReporter : public Reporter { |
|
|
|
/** Adds a \a reporter to the composite. */ |
|
|
|
/** Adds a \a reporter to the composite. */ |
|
|
|
void add(std::unique_ptr<Reporter> reporter); |
|
|
|
void add(std::unique_ptr<Reporter> reporter); |
|
|
|
|
|
|
|
|
|
|
|
void ReportQPS(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportQPS(const ScenarioResult& result) override; |
|
|
|
void ReportQPSPerCore(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportQPSPerCore(const ScenarioResult& result) override; |
|
|
|
void ReportLatency(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportLatency(const ScenarioResult& result) override; |
|
|
|
void ReportTimes(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportTimes(const ScenarioResult& result) override; |
|
|
|
void ReportCpuUsage(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportCpuUsage(const ScenarioResult& result) override; |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
std::vector<std::unique_ptr<Reporter> > reporters_; |
|
|
|
std::vector<std::unique_ptr<Reporter> > reporters_; |
|
|
@ -101,11 +101,11 @@ class GprLogReporter : public Reporter { |
|
|
|
GprLogReporter(const string& name) : Reporter(name) {} |
|
|
|
GprLogReporter(const string& name) : Reporter(name) {} |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
void ReportQPS(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportQPS(const ScenarioResult& result) override; |
|
|
|
void ReportQPSPerCore(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportQPSPerCore(const ScenarioResult& result) override; |
|
|
|
void ReportLatency(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportLatency(const ScenarioResult& result) override; |
|
|
|
void ReportTimes(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportTimes(const ScenarioResult& result) override; |
|
|
|
void ReportCpuUsage(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportCpuUsage(const ScenarioResult& result) override; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** Dumps the report to a JSON file. */ |
|
|
|
/** Dumps the report to a JSON file. */ |
|
|
@ -115,11 +115,11 @@ class JsonReporter : public Reporter { |
|
|
|
: Reporter(name), report_file_(report_file) {} |
|
|
|
: Reporter(name), report_file_(report_file) {} |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
void ReportQPS(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportQPS(const ScenarioResult& result) override; |
|
|
|
void ReportQPSPerCore(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportQPSPerCore(const ScenarioResult& result) override; |
|
|
|
void ReportLatency(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportLatency(const ScenarioResult& result) override; |
|
|
|
void ReportTimes(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportTimes(const ScenarioResult& result) override; |
|
|
|
void ReportCpuUsage(const ScenarioResult& result) GRPC_OVERRIDE; |
|
|
|
void ReportCpuUsage(const ScenarioResult& result) override; |
|
|
|
|
|
|
|
|
|
|
|
const string report_file_; |
|
|
|
const string report_file_; |
|
|
|
}; |
|
|
|
}; |
|
|
|