aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/worker.cc
diff options
context:
space:
mode:
authorGravatar Guantao Liu <guantaol@google.com>2017-07-12 17:36:30 -0700
committerGravatar Guantao Liu <guantaol@google.com>2017-07-12 17:36:30 -0700
commitabe3cf51f02d48b28fd67d78e7a3060d763148b5 (patch)
treec3105d148ef9cfc57b367d175b6df83bfc349a65 /test/cpp/qps/worker.cc
parentf2e15655bc6eaa4bbe66234946056856ede090da (diff)
Add a new metric 'Queries/CPU-sec'.
Enable internal credential types.
Diffstat (limited to 'test/cpp/qps/worker.cc')
-rw-r--r--test/cpp/qps/worker.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/cpp/qps/worker.cc b/test/cpp/qps/worker.cc
index fd51d32db0..7a8036327f 100644
--- a/test/cpp/qps/worker.cc
+++ b/test/cpp/qps/worker.cc
@@ -30,6 +30,8 @@
DEFINE_int32(driver_port, 0, "Port for communication with driver");
DEFINE_int32(server_port, 0, "Port for operation as a server");
+DEFINE_string(credential_type, "INSECURE_CREDENTIALS",
+ "Credential type for communication with driver");
static bool got_sigint = false;
@@ -39,7 +41,8 @@ namespace grpc {
namespace testing {
static void RunServer() {
- QpsWorker worker(FLAGS_driver_port, FLAGS_server_port);
+ QpsWorker worker(FLAGS_driver_port, FLAGS_server_port,
+ FLAGS_credential_type.c_str());
while (!got_sigint && !worker.Done()) {
gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME),