aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/limit_cores.h
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-02-01 09:33:11 -0800
committerGravatar Vijay Pai <vpai@google.com>2016-02-01 09:33:11 -0800
commitc64736d852991c734938a16d58cb5861b7014c07 (patch)
tree1b0ea4a17540426fc2355aabba5c85f1492c5de4 /test/cpp/qps/limit_cores.h
parent03ba4d746a34855c2d6498f23b06f8a0ae6592eb (diff)
Clean-up core list usage and make it possible to reset the core list
Diffstat (limited to 'test/cpp/qps/limit_cores.h')
-rw-r--r--test/cpp/qps/limit_cores.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/cpp/qps/limit_cores.h b/test/cpp/qps/limit_cores.h
index 54c805216c..5467f3b881 100644
--- a/test/cpp/qps/limit_cores.h
+++ b/test/cpp/qps/limit_cores.h
@@ -38,7 +38,10 @@
namespace grpc {
namespace testing {
-int LimitCores(std::vector<int> core_vec);
+// LimitCores takes array and size arguments (instead of vector) for more direct
+// conversion from repeated field of protobuf. Use a cores_size of 0 to remove
+// existing limits (from an empty repeated field)
+int LimitCores(const int *cores, int cores_size);
} // namespace testing
} // namespace grpc