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

Unified Diff: runtime/vm/service.h

Issue 2994223002: Restore "Add current rss and embedder name to Observatory" (Closed)
Patch Set: 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/vm/os_win.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « runtime/vm/os_win.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698