/proc/self/cwd/source/common/grpc/stat_names.cc
Line | Count | Source |
1 | | #include "source/common/grpc/stat_names.h" |
2 | | |
3 | | namespace Envoy { |
4 | | namespace Grpc { |
5 | | |
6 | | StatNames::StatNames(Stats::SymbolTable& symbol_table) |
7 | | : pool_(symbol_table), streams_total_(pool_.add("streams_total")), |
8 | 26.5k | google_grpc_client_creation_(pool_.add("google_grpc_client_creation")) { |
9 | 478k | for (uint32_t i = 0; i <= Status::WellKnownGrpcStatus::MaximumKnown; ++i) { |
10 | 451k | std::string status_str = absl::StrCat(i); |
11 | 451k | streams_closed_[i] = pool_.add(absl::StrCat("streams_closed_", status_str)); |
12 | 451k | status_names_[status_str] = pool_.add(status_str); |
13 | 451k | } |
14 | 26.5k | } |
15 | | |
16 | | } // namespace Grpc |
17 | | } // namespace Envoy |