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

Function install_debug_allocator

test/iobuf_unittest.cpp:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void 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
99void show_prof_and_rm(const char* bin_name, const char* filename, size_t topn) {
100 char cmd[1024];

Callers 1

TEST_FFunction · 0.85

Calls 3

remove_tls_block_chainFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected