yiguolei commented on code in PR #40344:
URL: https://github.com/apache/doris/pull/40344#discussion_r1743140436


##########
be/src/common/daemon.cpp:
##########
@@ -204,42 +204,110 @@ void Daemon::tcmalloc_gc_thread() {
 #endif
 }
 
+void refresh_process_memory_metrics() {
+    doris::PerfCounters::refresh_proc_status();
+    doris::MemInfo::refresh_proc_meminfo();
+    doris::GlobalMemoryArbitrator::reset_refresh_interval_memory_growth();
+    ExecEnv::GetInstance()->brpc_iobuf_block_memory_tracker()->set_consumption(
+            butil::IOBuf::block_memory());
+}
+
+void refresh_allocator_memory_metrics() {

Review Comment:
   rename to refresh_xmalloc_xxxx
   because allocator is very similar to our TAllocator



-- 
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

Reply via email to