aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/server.h
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2015-11-02 16:45:08 -0800
committerGravatar vjpai <vpai@google.com>2015-11-02 16:45:08 -0800
commitd08a738166e7f293d4590bc852e102ebcbd2239d (patch)
tree4627fe80f4cfaa1bf55575f8d55541a7af66e6b4 /test/cpp/qps/server.h
parent9b14e15165e3fa0ab183453bdf30fd6f84ccc594 (diff)
Cleanup some names
Remove some unused options and make server_threads relevant Start stubbing out better qps/core calculations
Diffstat (limited to 'test/cpp/qps/server.h')
-rw-r--r--test/cpp/qps/server.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/cpp/qps/server.h b/test/cpp/qps/server.h
index 3ea9382e50..12bbf1fef6 100644
--- a/test/cpp/qps/server.h
+++ b/test/cpp/qps/server.h
@@ -34,10 +34,12 @@
#ifndef TEST_QPS_SERVER_H
#define TEST_QPS_SERVER_H
+#include <grpc/support/cpu.h>
+
#include "test/core/util/port.h"
#include "test/cpp/qps/timer.h"
#include "test/proto/messages.grpc.pb.h"
-#include "test/proto/perf_tests/perf_control.grpc.pb.h"
+#include "test/proto/benchmarks/control.grpc.pb.h"
namespace grpc {
namespace testing {
@@ -83,6 +85,7 @@ class Server {
}
int Port() const {return port_;}
+ int Cores() const {return gpr_cpu_num_cores();}
private:
int port_;
std::unique_ptr<Timer> timer_;