aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/qps/driver.h')
-rw-r--r--test/cpp/qps/driver.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/cpp/qps/driver.h b/test/cpp/qps/driver.h
index 7f69c013b7..50c0ba63a1 100644
--- a/test/cpp/qps/driver.h
+++ b/test/cpp/qps/driver.h
@@ -37,22 +37,24 @@
#include <memory>
#include "test/cpp/qps/histogram.h"
-#include "test/proto/perf_tests/perf_control.grpc.pb.h"
+#include "test/proto/benchmarks/control.grpc.pb.h"
namespace grpc {
namespace testing {
class ResourceUsage {
public:
- ResourceUsage(double w, double u, double s)
- : wall_time_(w), user_time_(u), system_time_(s) {}
+ ResourceUsage(double w, double u, double s, int c)
+ : wall_time_(w), user_time_(u), system_time_(s), cores_(c) {}
double wall_time() const { return wall_time_; }
double user_time() const { return user_time_; }
double system_time() const { return system_time_; }
+ int cores() const { return cores_; }
private:
double wall_time_;
double user_time_;
double system_time_;
+ int cores_;
};
struct ScenarioResult {