diff options
author | Craig Tiller <ctiller@google.com> | 2017-03-09 08:03:27 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-03-09 08:03:27 -0800 |
commit | 71c286466acffef07efbd83cf5424b0cfcf2aad8 (patch) | |
tree | efede390b411187d8b906018645f40947bc96d9e /test/cpp/microbenchmarks/helpers.h | |
parent | 5ea6c9f3644c72c9cfb578658ed43bb58de902e0 (diff) |
Dont use memory counters unless counters mode is on
Diffstat (limited to 'test/cpp/microbenchmarks/helpers.h')
-rw-r--r-- | test/cpp/microbenchmarks/helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/microbenchmarks/helpers.h b/test/cpp/microbenchmarks/helpers.h index 42a8fbaf0b..2829a46e5a 100644 --- a/test/cpp/microbenchmarks/helpers.h +++ b/test/cpp/microbenchmarks/helpers.h @@ -84,8 +84,8 @@ class TrackCounters { gpr_atm_no_barrier_load(&gpr_counter_atm_cas); const size_t atm_add_at_start_ = gpr_atm_no_barrier_load(&gpr_counter_atm_add); -#endif grpc_memory_counters counters_at_start_ = grpc_memory_counters_snapshot(); +#endif }; #endif |