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

Unified Diff: runtime/vm/service.h

Issue 2996803002: Add current rss and embedder name to Observatory (Closed)
Patch Set: Refactoring 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
Index: runtime/vm/service.h
diff --git a/runtime/vm/service.h b/runtime/vm/service.h
index 0d9aa39e5a6024ac589b071bf4769a018ac053d9..4f278db729c94cee788b6fbe840ceb89b4a7ea0f 100644
--- a/runtime/vm/service.h
+++ b/runtime/vm/service.h
@@ -100,6 +100,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);
@@ -167,6 +170,9 @@ class Service : public AllStatic {
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 +215,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') | runtime/vm/service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698