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

Function get_tcmalloc_num_prop

src/brpc/builtin/memory_service.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29BRPC_VALIDATE_GFLAG(max_tc_stats_buf_len, PositiveInteger);
30
31static inline void get_tcmalloc_num_prop(MallocExtension* malloc_ext,
32 const char* prop_name,
33 butil::IOBufBuilder& os) {
34 size_t value;
35 if (malloc_ext->GetNumericProperty(prop_name, &value)) {
36 os << prop_name << ": " << value << "\n";
37 }
38}
39
40static void get_tcmalloc_memory_info(butil::IOBuf& out) {
41 MallocExtension* malloc_ext = MallocExtension::instance();

Callers 1

get_tcmalloc_memory_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected