You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/07/18 01:15:51 UTC

[GitHub] [doris] xinyiZzz commented on a diff in pull request #10924: [Enhancement] [Memory] Limit memory usage use process actual physical memory

xinyiZzz commented on code in PR #10924:
URL: https://github.com/apache/doris/pull/10924#discussion_r922923851


##########
be/src/util/perf_counters.h:
##########
@@ -95,6 +97,26 @@ class PerfCounters {
     PerfCounters();
     ~PerfCounters();
 
+    // Refactor
+
+    struct ProcStatus {
+        int64_t vm_size = 0;
+        int64_t vm_peak = 0;
+        int64_t vm_rss = 0;
+    };
+
+    static int parser_int(const std::string& state_key);

Review Comment:
   done



-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org