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

Unified Diff: runtime/vm/os.h

Issue 2250793004: Observatory: Report peak process memory usage. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 4 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/observatory/lib/src/service/object.dart ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os.h
diff --git a/runtime/vm/os.h b/runtime/vm/os.h
index a86889b4c6240819911b1d14b0c24a61166fde71..3b9ac0d090dc6a1e7d1f1f8596ad0debb643af71 100644
--- a/runtime/vm/os.h
+++ b/runtime/vm/os.h
@@ -100,6 +100,9 @@ class OS {
// Returns number of available processor cores.
static int NumberOfAvailableProcessors();
+ // Returns the maximium resident set size of this process.
+ static uintptr_t MaxRSS();
+
// Sleep the currently executing thread for millis ms.
static void Sleep(int64_t millis);
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698