MCPcopy Create free account
hub / github.com/apache/trafficserver / add_cipher_stat

Function add_cipher_stat

src/iocore/net/SSLStats.cc:145–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static void
146add_cipher_stat(const char *cipherName, const std::string &statName)
147{
148 // If not already registered ...
149 if (cipherName && cipher_map.find(cipherName) == cipher_map.end()) {
150 Metrics::Counter::AtomicType *metric = Metrics::Counter::createPtr(statName);
151
152 cipher_map.emplace(cipherName, metric);
153 Dbg(dbg_ctl_ssl, "registering SSL cipher metric '%s'", statName.c_str());
154 }
155}
156
157void
158SSLInitializeStatistics()

Callers 1

SSLInitializeStatisticsFunction · 0.85

Calls 4

emplaceMethod · 0.80
findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected