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


##########
be/src/runtime/workload_management/io_throttle.h:
##########
@@ -47,12 +41,16 @@ class IOThrottle {
 
     void set_io_bytes_per_second(int64_t read_bytes_per_second);
 
-    int64_t get_io_bytes_per_second() { return _io_bytes_per_second; }
+    size_t get_bvar_io_per_second() { return 
_io_adder_per_second->get_value(); }
 
 private:
     std::mutex _mutex;
     std::condition_variable wait_condition;
     int64_t _next_io_time_micros {0};
-    std::atomic<int64_t> _io_bytes_per_second {10485760};
+    std::atomic<int64_t> _io_bytes_per_second_limit {10485760};
+
+    // bvar monitor
+    std::unique_ptr<bvar::Adder<size_t>> _io_adder;

Review Comment:
   这里为什么要单独保存一个io adder?



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