diff options
author | Siddharth Rakesh <sidrakesh@google.com> | 2015-06-04 17:32:31 -0700 |
---|---|---|
committer | Siddharth Rakesh <sidrakesh@google.com> | 2015-06-04 17:32:31 -0700 |
commit | 922ea81877fc8b0676ae90d59a3caad9954e2feb (patch) | |
tree | 1a530a890d2589a23c8b3b346d0b2134f2f30840 /test/cpp/qps/report.h | |
parent | b15d37a3c8382d156bae89466d2cef32d668253e (diff) |
QPS, latencies recorded with authentication
Diffstat (limited to 'test/cpp/qps/report.h')
-rw-r--r-- | test/cpp/qps/report.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/cpp/qps/report.h b/test/cpp/qps/report.h index 630275ecda..2e5b627e58 100644 --- a/test/cpp/qps/report.h +++ b/test/cpp/qps/report.h @@ -106,6 +106,20 @@ class GprLogReporter : public Reporter { void ReportTimes(const ScenarioResult& result) const GRPC_OVERRIDE; }; +/** Reporter for client leaderboard. */ +class UserDatabaseReporter : public Reporter { + public: + UserDatabaseReporter(const string& name, const string& access_token) : Reporter(name), access_token_(access_token) {} + + private: + std::string access_token_; + void ReportQPS(const ScenarioResult& result) const GRPC_OVERRIDE; + void ReportQPSPerCore(const ScenarioResult& result, + const ServerConfig& config) const GRPC_OVERRIDE; + void ReportLatency(const ScenarioResult& result) const GRPC_OVERRIDE; + void ReportTimes(const ScenarioResult& result) const GRPC_OVERRIDE; +}; + } // namespace testing } // namespace grpc |