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

Unified Diff: runtime/vm/service.cc

Issue 2012333002: Make the object store visible in Observatory. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/object_store.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index fc78a4879bb26214aa9c91ff5025ea6899a97b91..ab667c42330f39e37edbe163f1e7cd283eb6c3c4 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -3597,6 +3597,19 @@ static bool GetObject(Thread* thread, JSONStream* js) {
}
+static const MethodParameter* get_object_store_params[] = {
+ RUNNABLE_ISOLATE_PARAMETER,
+ NULL,
+};
+
+
+static bool GetObjectStore(Thread* thread, JSONStream* js) {
+ JSONObject jsobj(js);
+ thread->isolate()->object_store()->PrintToJSONObject(&jsobj);
+ return true;
+}
+
+
static const MethodParameter* get_class_list_params[] = {
RUNNABLE_ISOLATE_PARAMETER,
NULL,
@@ -3973,6 +3986,8 @@ static const ServiceMethodDescriptor service_methods_[] = {
get_isolate_metric_list_params },
{ "getObject", GetObject,
get_object_params },
+ { "_getObjectStore", GetObjectStore,
+ get_object_store_params },
{ "_getObjectByAddress", GetObjectByAddress,
get_object_by_address_params },
{ "_getPersistentHandles", GetPersistentHandles,
« no previous file with comments | « runtime/vm/object_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698