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

Unified Diff: runtime/bin/process.cc

Issue 2997013002: Refactor of the GetEmbedderInformation APIs (Closed)
Patch Set: Address comments Created 3 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/bin/process.h ('k') | runtime/include/dart_tools_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.cc
diff --git a/runtime/bin/process.cc b/runtime/bin/process.cc
index 6c5171c1145f6f01dbf744b1741fd113f717aece..6ecdbca16515e9a0160d6652c8c673492cdb83b2 100644
--- a/runtime/bin/process.cc
+++ b/runtime/bin/process.cc
@@ -369,6 +369,13 @@ void FUNCTION_NAME(ProcessInfo_MaxRSS)(Dart_NativeArguments args) {
Dart_SetIntegerReturnValue(args, max_rss);
}
+void Process::GetRSSInformation(int64_t* max_rss, int64_t* current_rss) {
+ ASSERT(max_rss != NULL);
+ ASSERT(current_rss != NULL);
+ *max_rss = Process::MaxRSS();
+ *current_rss = Process::CurrentRSS();
+}
+
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/process.h ('k') | runtime/include/dart_tools_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698