aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/qps_json_driver.cc
diff options
context:
space:
mode:
authorGravatar Yuxuan Li <yuxuanli@google.com>2016-10-06 15:05:29 -0700
committerGravatar Yuxuan Li <yuxuanli@google.com>2016-10-06 15:05:29 -0700
commitfe21ec90f6f2b3f20aec3dad5bb085630cfbc621 (patch)
treeefd58b70cfdae1419922861947a1c0eca7096660 /test/cpp/qps/qps_json_driver.cc
parent3a9f49d409d5fa552ea6053eedfa0a8e27d160e0 (diff)
batched changes
Diffstat (limited to 'test/cpp/qps/qps_json_driver.cc')
-rw-r--r--test/cpp/qps/qps_json_driver.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cpp/qps/qps_json_driver.cc b/test/cpp/qps/qps_json_driver.cc
index 1524ebbc38..ec77e1ea56 100644
--- a/test/cpp/qps/qps_json_driver.cc
+++ b/test/cpp/qps/qps_json_driver.cc
@@ -50,6 +50,10 @@ DEFINE_string(scenarios_json, "",
"JSON string containing an array of Scenario objects");
DEFINE_bool(quit, false, "Quit the workers");
+DEFINE_double(initial_offered_load, 1000.0, "Set up for intial offered load");
+
+DEFINE_double(targeted_cpu_load, 99.0, "targeted cpu load");
+
namespace grpc {
namespace testing {
@@ -109,6 +113,7 @@ static bool QpsDriver() {
GetReporter()->ReportQPSPerCore(*result);
GetReporter()->ReportLatency(*result);
GetReporter()->ReportTimes(*result);
+ GetReporter()->ReportCpuUsage(*result);
for (int i = 0; success && i < result->client_success_size(); i++) {
success = result->client_success(i);