aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/microbenchmarks/bm_call_create.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-04-24 18:35:36 +0000
committerGravatar Craig Tiller <ctiller@google.com>2017-04-24 18:35:36 +0000
commit1fb0c3916815192a4f49a0ced1b5013a9a5084fb (patch)
tree5a0c8a80031db66357ed145d893188e15ec8e9ee /test/cpp/microbenchmarks/bm_call_create.cc
parente0e8ed9b5bc16111057a2760b235b22bfa084483 (diff)
parente40588d8e9bdd005f9423916f642db44d6194b37 (diff)
Merge github.com:grpc/grpc into epex4
Diffstat (limited to 'test/cpp/microbenchmarks/bm_call_create.cc')
-rw-r--r--test/cpp/microbenchmarks/bm_call_create.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cpp/microbenchmarks/bm_call_create.cc b/test/cpp/microbenchmarks/bm_call_create.cc
index 18b7566bef..c91219e98c 100644
--- a/test/cpp/microbenchmarks/bm_call_create.cc
+++ b/test/cpp/microbenchmarks/bm_call_create.cc
@@ -68,10 +68,12 @@ auto &force_library_initialization = Library::get();
void BM_Zalloc(benchmark::State &state) {
// speed of light for call creation is zalloc, so benchmark a few interesting
// sizes
+ TrackCounters track_counters;
size_t sz = state.range(0);
while (state.KeepRunning()) {
gpr_free(gpr_zalloc(sz));
}
+ track_counters.Finish(state);
}
BENCHMARK(BM_Zalloc)
->Arg(64)