Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Unified Diff: runtime/bin/process.h

Issue 2822943002: [dart:io] Adds ProcessInfo.{max,current}Rss. Adds OS::MaxRSS on Fuchsia. (Closed)
Patch Set: Cleanup Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.h
diff --git a/runtime/bin/process.h b/runtime/bin/process.h
index 734db37c84103801a3a00fd67935c59896f35c90..184b098b177a8c280c0b55c236e1d45a77f319b7 100644
--- a/runtime/bin/process.h
+++ b/runtime/bin/process.h
@@ -146,6 +146,9 @@ class Process {
intptr_t* pid);
static Dart_Handle SetProcessIdNativeField(Dart_Handle process, intptr_t pid);
+ static intptr_t CurrentRSS();
rmacnak 2017/04/17 20:09:02 Consider uintptr_t or int64_t. A 32-bit process co
zra 2017/04/17 21:19:00 Good point. Done.
+ static intptr_t MaxRSS();
+
private:
static int global_exit_code_;
static Mutex* global_exit_code_mutex_;
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698