aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/memory_usage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-03-23 15:14:48 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-03-23 15:14:48 -0700
commit878a7c2a09d01baec4df8eb99ba9cbe1dc9af7e3 (patch)
tree27e2137631a6221ddc7ee493cdc42ec6e5656be7 /test/core/memory_usage
parent6f1e443a519cd28d97be78c5ca2ca72a45f6b598 (diff)
Memory usage tweaks
- Improve estimation to give a more reliable slop space in the arena - Improve measurement by issuing sufficient throw-away calls on a channel to allow call size estimation to settle
Diffstat (limited to 'test/core/memory_usage')
-rw-r--r--test/core/memory_usage/client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/core/memory_usage/client.c b/test/core/memory_usage/client.c
index 107abbc1b3..51ea51bc12 100644
--- a/test/core/memory_usage/client.c
+++ b/test/core/memory_usage/client.c
@@ -237,6 +237,11 @@ int main(int argc, char **argv) {
0, grpc_slice_from_static_string("Reflector/GetAfterSvrCreation"));
// warmup period
+ for (int i = 0; i < warmup_iterations; i++) {
+ send_snapshot_request(
+ 0, grpc_slice_from_static_string("Reflector/SimpleSnapshot"));
+ }
+
for (call_idx = 0; call_idx < warmup_iterations; ++call_idx) {
init_ping_pong_request(call_idx + 1);
}