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 |