HappenLee commented on code in PR #37289:
URL: https://github.com/apache/doris/pull/37289#discussion_r1665419849


##########
be/src/common/daemon.cpp:
##########
@@ -396,6 +397,14 @@ void Daemon::wg_mem_used_refresh_thread() {
     }
 }
 
+void Daemon::be_proc_monitor_thread() {
+    while (!_stop_background_threads_latch.wait_for(
+            std::chrono::milliseconds(config::be_proc_monitor_interval_ms))) {
+        BeProcMonitor bpm;

Review Comment:
   should we create object each while loop? Better the `get_be_thread_info()` 
should be static



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to