diff options
author | 2017-09-13 18:05:24 -0700 | |
---|---|---|
committer | 2017-09-13 18:05:24 -0700 | |
commit | 5e81d0927987fdd631e0242c36c1a80a8c1bc9dd (patch) | |
tree | 83c2f041319a71d416b8c2205eec089719aa0147 /src/core/ext/filters/client_channel | |
parent | e93da819e0018a1866321e58e94ccb25b7466249 (diff) | |
parent | f1dc9c36a71ce11e0ebfda8553b5deb383d25107 (diff) |
Merge pull request #12555 from ctiller/gross-object-counts
Count API object creations
Diffstat (limited to 'src/core/ext/filters/client_channel')
-rw-r--r-- | src/core/ext/filters/client_channel/subchannel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/subchannel.c b/src/core/ext/filters/client_channel/subchannel.c index 05c55aaa89..bc9c3cc782 100644 --- a/src/core/ext/filters/client_channel/subchannel.c +++ b/src/core/ext/filters/client_channel/subchannel.c @@ -32,6 +32,7 @@ #include "src/core/ext/filters/client_channel/uri_parser.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/connected_channel.h" +#include "src/core/lib/debug/stats.h" #include "src/core/lib/iomgr/sockaddr_utils.h" #include "src/core/lib/iomgr/timer.h" #include "src/core/lib/profiling/timers.h" @@ -290,6 +291,7 @@ grpc_subchannel *grpc_subchannel_create(grpc_exec_ctx *exec_ctx, return c; } + GRPC_STATS_INC_CLIENT_SUBCHANNELS_CREATED(exec_ctx); c = (grpc_subchannel *)gpr_zalloc(sizeof(*c)); c->key = key; gpr_atm_no_barrier_store(&c->ref_pair, 1 << INTERNAL_REF_BITS); |