From a08b11f33a7a7046d8d329b5c331fa93b2d479e6 Mon Sep 17 00:00:00 2001 From: Craig Tiller <ctiller@google.com> Date: Fri, 10 Mar 2017 20:34:08 -0800 Subject: [PATCH] Dont track allocations if we are not going to use them --- test/cpp/microbenchmarks/helpers.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cpp/microbenchmarks/helpers.h b/test/cpp/microbenchmarks/helpers.h index 2829a46e5a..f44b7cf83a 100644 --- a/test/cpp/microbenchmarks/helpers.h +++ b/test/cpp/microbenchmarks/helpers.h @@ -55,7 +55,9 @@ class Library { private: Library() { +#ifdef GPR_LOW_LEVEL_COUNTERS grpc_memory_counters_init(); +#endif init_lib_.init(); rq_ = grpc_resource_quota_create("bm"); } -- GitLab