MCPcopy Create free account
hub / github.com/apache/brpc / PrintEnabledProfilers

Function PrintEnabledProfilers

src/brpc/server.cpp:244–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244static void PrintEnabledProfilers(std::ostream& os, void*) {
245 if (cpu_profiler_enabled) {
246 os << "cpu ";
247 }
248 if (IsHeapProfilerEnabled()) {
249 if (has_TCMALLOC_SAMPLE_PARAMETER()) {
250 os << "heap ";
251 } else {
252 os << "heap(no TCMALLOC_SAMPLE_PARAMETER in env) ";
253 }
254 }
255 os << "contention";
256}
257
258static bvar::PassiveStatus<std::string> s_lb_st(
259 "rpc_load_balancer", PrintSupportedLB, NULL);

Callers

nothing calls this directly

Calls 2

IsHeapProfilerEnabledFunction · 0.85

Tested by

no test coverage detected