| 29 | BRPC_VALIDATE_GFLAG(max_tc_stats_buf_len, PositiveInteger); |
| 30 | |
| 31 | static 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 | |
| 40 | static void get_tcmalloc_memory_info(butil::IOBuf& out) { |
| 41 | MallocExtension* malloc_ext = MallocExtension::instance(); |
no outgoing calls
no test coverage detected