github-actions[bot] commented on code in PR #32641: URL: https://github.com/apache/doris/pull/32641#discussion_r1540421187
########## be/src/runtime/workload_group/workload_group_manager.cpp: ########## @@ -135,6 +137,125 @@ void WorkloadGroupMgr::delete_workload_group_by_ids(std::set<uint64_t> used_wg_i << "ms, deleted group size:" << deleted_task_groups.size(); } +struct WorkloadGroupMemInfo { + int64_t total_mem_used = 0; + int64_t weighted_mem_used = 0; + bool is_low_wartermark = false; + bool is_high_wartermark = false; + double mem_used_ratio = 0; +}; +void WorkloadGroupMgr::refresh_wg_memory_info() { Review Comment: warning: function 'refresh_wg_memory_info' exceeds recommended size/complexity thresholds [readability-function-size] ```cpp void WorkloadGroupMgr::refresh_wg_memory_info() { ^ ``` <details> <summary>Additional context</summary> **be/src/runtime/workload_group/workload_group_manager.cpp:146:** 110 lines including whitespace and comments (threshold 80) ```cpp void WorkloadGroupMgr::refresh_wg_memory_info() { ^ ``` </details> -- 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