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

Unified Diff: runtime/bin/embedded_dart_io.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/embedded_dart_io.h ('k') | runtime/bin/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/embedded_dart_io.cc
diff --git a/runtime/bin/embedded_dart_io.cc b/runtime/bin/embedded_dart_io.cc
index c0a912e455d0993cd3e59db3c22b8f7099ad7ad6..d6ab7e2916dd6486433a8058fd420b367420af45 100644
--- a/runtime/bin/embedded_dart_io.cc
+++ b/runtime/bin/embedded_dart_io.cc
@@ -7,6 +7,7 @@
#include "bin/directory.h"
#include "bin/eventhandler.h"
#include "bin/platform.h"
+#include "bin/process.h"
#include "bin/thread.h"
#include "bin/utils.h"
@@ -32,5 +33,12 @@ void SetExecutableArguments(int script_index, char** argv) {
Platform::SetExecutableArguments(script_index, argv);
}
+void GetIOEmbedderInformation(Dart_EmbedderInformation* info) {
+ ASSERT(info != NULL);
+ ASSERT(info->version == DART_EMBEDDER_INFORMATION_CURRENT_VERSION);
+
+ Process::GetRSSInformation(&(info->max_rss), &(info->current_rss));
+}
+
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/embedded_dart_io.h ('k') | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698