aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/report.h
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-14 12:59:42 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-14 13:13:25 -0700
commit969ffaf5c61aeec0c52a721d64b39528da233fd3 (patch)
tree43b99c43617edd23c2933a7f755e0b79f7bf00a7 /test/cpp/qps/report.h
parentf2ba7fe037b4e97d727ba38603364c464144e2e9 (diff)
Enable JSON reports for qps drivers
Diffstat (limited to 'test/cpp/qps/report.h')
-rw-r--r--test/cpp/qps/report.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/cpp/qps/report.h b/test/cpp/qps/report.h
index b299e415f1..e32a129e76 100644
--- a/test/cpp/qps/report.h
+++ b/test/cpp/qps/report.h
@@ -107,13 +107,17 @@ class GprLogReporter : public Reporter {
/** Dumps the report to a JSON file. */
class JsonReporter : public Reporter {
public:
- JsonReporter(const string& name) : Reporter(name) {}
+ JsonReporter(const string& name, const string& report_file) :
+ Reporter(name),
+ report_file_(report_file) {}
private:
void ReportQPS(const ScenarioResult& result) GRPC_OVERRIDE;
void ReportQPSPerCore(const ScenarioResult& result) GRPC_OVERRIDE;
void ReportLatency(const ScenarioResult& result) GRPC_OVERRIDE;
void ReportTimes(const ScenarioResult& result) GRPC_OVERRIDE;
+
+ const string report_file_;
};
} // namespace testing