diff options
author | 2017-05-03 22:50:56 -0700 | |
---|---|---|
committer | 2017-05-03 22:50:56 -0700 | |
commit | 28efff3e1e3d969f343bd1075039ce25d7834682 (patch) | |
tree | cfe74227924ea6e4aca7d1f3e136c4585d687968 /test/cpp/microbenchmarks/fullstack_fixtures.h | |
parent | 5d3ddeeea1dc88392cfb126ebd5b86185c2d36cc (diff) |
clang-format
Diffstat (limited to 'test/cpp/microbenchmarks/fullstack_fixtures.h')
-rw-r--r-- | test/cpp/microbenchmarks/fullstack_fixtures.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/cpp/microbenchmarks/fullstack_fixtures.h b/test/cpp/microbenchmarks/fullstack_fixtures.h index cb96ac5d71..b3ea12cb7a 100644 --- a/test/cpp/microbenchmarks/fullstack_fixtures.h +++ b/test/cpp/microbenchmarks/fullstack_fixtures.h @@ -100,10 +100,12 @@ class FullstackFixture : public BaseFixture { } } - void Finish(benchmark::State &state) { + void Finish(benchmark::State& state) { std::ostringstream out; AddToLabel(out, state); - AppendToLabel(out, "polls/iter", (double)grpc_get_cq_poll_num(this->cq()->cq())/state.iterations()); + AppendToLabel( + out, "polls/iter", + (double)grpc_get_cq_poll_num(this->cq()->cq()) / state.iterations()); auto label = out.str(); if (label.length() && label[0] == ' ') { label = label.substr(1); @@ -223,17 +225,19 @@ class EndpointPairFixture : public BaseFixture { } } - void Finish(benchmark::State &state) { + void Finish(benchmark::State& state) { std::ostringstream out; AddToLabel(out, state); - AppendToLabel(out, "polls/iter", (double)grpc_get_cq_poll_num(this->cq()->cq())/state.iterations()); + AppendToLabel( + out, "polls/iter", + (double)grpc_get_cq_poll_num(this->cq()->cq()) / state.iterations()); auto label = out.str(); if (label.length() && label[0] == ' ') { label = label.substr(1); } state.SetLabel(label); } - + ServerCompletionQueue* cq() { return cq_.get(); } std::shared_ptr<Channel> channel() { return channel_; } |