diff options
author | ncteisen <ncteisen@gmail.com> | 2018-07-18 07:38:15 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-07-18 07:45:59 -0700 |
commit | f87b9551c232fcc986ede271f496d3812c2b7b80 (patch) | |
tree | 5dc46d3492af5e4630ea32ec8ac7a6f9337ece99 /src/core/ext/filters/client_channel/client_channel_channelz.h | |
parent | 5d373c40bdd616d2d0e65b1c6936cc2d07ba4044 (diff) | |
parent | a9f3d78c6ef4897816f696366814967fd5db2ad6 (diff) |
Merge branch 'master' of https://github.com/grpc/grpc into channelz-get-top-channels
Diffstat (limited to 'src/core/ext/filters/client_channel/client_channel_channelz.h')
-rw-r--r-- | src/core/ext/filters/client_channel/client_channel_channelz.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/client_channel_channelz.h b/src/core/ext/filters/client_channel/client_channel_channelz.h index 6fb475399f..6f27b5c8b7 100644 --- a/src/core/ext/filters/client_channel/client_channel_channelz.h +++ b/src/core/ext/filters/client_channel/client_channel_channelz.h @@ -22,9 +22,17 @@ #include <grpc/support/port_platform.h> #include "src/core/lib/channel/channel_args.h" +#include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/channel/channelz.h" +#include "src/core/lib/gprpp/inlined_vector.h" namespace grpc_core { + +// TODO(ncteisen), this only contains the uuids of the children for now, +// since that is all that is strictly needed. In a future enhancement we will +// add human readable names as in the channelz.proto +typedef InlinedVector<intptr_t, 10> ChildRefsList; + namespace channelz { // Subtype of ChannelNode that overrides and provides client_channel specific @@ -39,6 +47,9 @@ class ClientChannelNode : public ChannelNode { // channel connectivity. void PopulateConnectivityState(grpc_json* json) override; + // Override this functionality since client_channels have subchannels + void PopulateChildRefs(grpc_json* json) override; + // Helper to create a channel arg to ensure this type of ChannelNode is // created. static grpc_arg CreateChannelArg(); |