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

Function StatsPrint

src/brpc/details/jemalloc_profiler.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86std::string StatsPrint(const std::string& opts) {
87 if (malloc_stats_print == nullptr) {
88 return "your jemalloc no support malloc_stats_print";
89 }
90
91 std::string stat_str;
92 malloc_stats_print(WriteCb, &stat_str, opts.c_str());
93 return stat_str;
94}
95
96static int JeProfileActive(bool active) {
97 if (!HasJemalloc()) {

Callers 2

JeControlProfileFunction · 0.85
get_jemalloc_memory_infoFunction · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected