xinyiZzz commented on code in PR #9145: URL: https://github.com/apache/incubator-doris/pull/9145#discussion_r857133400
########## be/src/runtime/mem_tracker.cpp: ########## @@ -60,6 +60,21 @@ MemTracker* MemTracker::get_raw_process_tracker() { return raw_process_tracker; } +// Track memory for all brpc server responses. +static std::shared_ptr<MemTracker> brpc_server_tracker; +static GoogleOnceType brpc_server_tracker_once = GOOGLE_ONCE_INIT; + +void MemTracker::create_brpc_server_tracker() { + brpc_server_tracker.reset(new MemTracker(-1, "Brpc", get_process_tracker(), MemTrackerLevel::OVERVIEW, nullptr)); Review Comment: done, you are right -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org