diff options
author | ncteisen <ncteisen@gmail.com> | 2018-10-02 16:00:53 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-10-02 17:42:02 -0700 |
commit | f9061852007cdef4b5e71dbe8f0b7ccc0874d3f9 (patch) | |
tree | 6a781d90e64c3f1c024f4cc1d9f6fab21468e655 /test/core/channel | |
parent | 242d6a58dc3cdf82a393c32e95fa6d2792ad04d1 (diff) |
Shard channelz stats by CPU
Diffstat (limited to 'test/core/channel')
-rw-r--r-- | test/core/channel/channelz_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/channel/channelz_test.cc b/test/core/channel/channelz_test.cc index bcda30d9f2..b7b35aede4 100644 --- a/test/core/channel/channelz_test.cc +++ b/test/core/channel/channelz_test.cc @@ -49,8 +49,9 @@ class CallCountingHelperPeer { public: explicit CallCountingHelperPeer(CallCountingHelper* node) : node_(node) {} grpc_millis last_call_started_millis() const { + CallCountingHelper::CounterData data = node_->Collect(); return (grpc_millis)gpr_atm_no_barrier_load( - &node_->last_call_started_millis_); + &data.last_call_started_millis_); } private: |