| 87 | } |
| 88 | |
| 89 | void install_debug_allocator() { |
| 90 | if (!is_debug_allocator_enabled()) { |
| 91 | butil::iobuf::remove_tls_block_chain(); |
| 92 | s_set.init(1024); |
| 93 | butil::iobuf::blockmem_allocate = debug_block_allocate; |
| 94 | butil::iobuf::blockmem_deallocate = debug_block_deallocate; |
| 95 | LOG(INFO) << "<Installed debug create/destroy>"; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | void show_prof_and_rm(const char* bin_name, const char* filename, size_t topn) { |
| 100 | char cmd[1024]; |
no test coverage detected