aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@gmail.com>2018-10-05 10:47:38 -0700
committerGravatar GitHub <noreply@github.com>2018-10-05 10:47:38 -0700
commit5159d8bacd6159aaf9f052f9bbe253f1d6027b5a (patch)
tree728f451906668580fef2e84d37af324e2c01947f /test/core
parent291fa1022ac576fb2bca02076c4819f39c259182 (diff)
parent3c2024c6af1a4212f8ed76f6220e3f7731959b6b (diff)
Merge pull request #16765 from ncteisen/channelz-perf
Shard Channelz Stats by CPU
Diffstat (limited to 'test/core')
-rw-r--r--test/core/channel/channelz_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/core/channel/channelz_test.cc b/test/core/channel/channelz_test.cc
index bcda30d9f2..2454079237 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 {
- return (grpc_millis)gpr_atm_no_barrier_load(
- &node_->last_call_started_millis_);
+ CallCountingHelper::CounterData data;
+ node_->CollectData(&data);
+ return (grpc_millis)gpr_atm_no_barrier_load(&data.last_call_started_millis);
}
private: