Index: runtime/vm/service.h |
diff --git a/runtime/vm/service.h b/runtime/vm/service.h |
index 0d9aa39e5a6024ac589b071bf4769a018ac053d9..b6704cbe31a184f858c2ed682efc49ebc4c0d040 100644 |
--- a/runtime/vm/service.h |
+++ b/runtime/vm/service.h |
@@ -25,6 +25,7 @@ class GrowableObjectArray; |
class Instance; |
class Isolate; |
class JSONStream; |
+class JSONObject; |
class Object; |
class RawInstance; |
class RawError; |
@@ -100,6 +101,9 @@ class Service : public AllStatic { |
Dart_ServiceRequestCallback callback, |
void* user_data); |
+ static void SetEmbedderInformationCallback( |
+ Dart_EmbedderInformationCallback callback); |
+ |
static void SetEmbedderStreamCallbacks( |
Dart_ServiceStreamListenCallback listen_callback, |
Dart_ServiceStreamCancelCallback cancel_callback); |
@@ -163,10 +167,14 @@ class Service : public AllStatic { |
return stream_cancel_callback_; |
} |
+ static void PrintJSONForEmbedderInformation(JSONObject *jsobj); |
static void PrintJSONForVM(JSONStream* js, bool ref); |
static void CheckForPause(Isolate* isolate, JSONStream* stream); |
+ static int64_t CurrentRSS(); |
+ static int64_t MaxRSS(); |
+ |
private: |
static RawError* InvokeMethod(Isolate* isolate, |
const Array& message, |
@@ -209,6 +217,7 @@ class Service : public AllStatic { |
static Dart_ServiceStreamListenCallback stream_listen_callback_; |
static Dart_ServiceStreamCancelCallback stream_cancel_callback_; |
static Dart_GetVMServiceAssetsArchive get_service_assets_callback_; |
+ static Dart_EmbedderInformationCallback embedder_information_callback_; |
static bool needs_isolate_events_; |
static bool needs_debug_events_; |