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

Side by Side 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, 6 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/object_store.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/service.h" 5 #include "vm/service.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 10
(...skipping 3579 matching lines...) Expand 10 before | Expand all | Expand 10 after
3590 } else if (lookup_result == ObjectIdRing::kCollected) { 3590 } else if (lookup_result == ObjectIdRing::kCollected) {
3591 PrintSentinel(js, kCollectedSentinel); 3591 PrintSentinel(js, kCollectedSentinel);
3592 return true; 3592 return true;
3593 } 3593 }
3594 3594
3595 PrintInvalidParamError(js, "objectId"); 3595 PrintInvalidParamError(js, "objectId");
3596 return true; 3596 return true;
3597 } 3597 }
3598 3598
3599 3599
3600 static const MethodParameter* get_object_store_params[] = {
3601 RUNNABLE_ISOLATE_PARAMETER,
3602 NULL,
3603 };
3604
3605
3606 static bool GetObjectStore(Thread* thread, JSONStream* js) {
3607 JSONObject jsobj(js);
3608 thread->isolate()->object_store()->PrintToJSONObject(&jsobj);
3609 return true;
3610 }
3611
3612
3600 static const MethodParameter* get_class_list_params[] = { 3613 static const MethodParameter* get_class_list_params[] = {
3601 RUNNABLE_ISOLATE_PARAMETER, 3614 RUNNABLE_ISOLATE_PARAMETER,
3602 NULL, 3615 NULL,
3603 }; 3616 };
3604 3617
3605 3618
3606 static bool GetClassList(Thread* thread, JSONStream* js) { 3619 static bool GetClassList(Thread* thread, JSONStream* js) {
3607 ClassTable* table = thread->isolate()->class_table(); 3620 ClassTable* table = thread->isolate()->class_table();
3608 JSONObject jsobj(js); 3621 JSONObject jsobj(js);
3609 table->PrintToJSONObject(&jsobj); 3622 table->PrintToJSONObject(&jsobj);
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
3966 { "_getInstances", GetInstances, 3979 { "_getInstances", GetInstances,
3967 get_instances_params }, 3980 get_instances_params },
3968 { "getIsolate", GetIsolate, 3981 { "getIsolate", GetIsolate,
3969 get_isolate_params }, 3982 get_isolate_params },
3970 { "_getIsolateMetric", GetIsolateMetric, 3983 { "_getIsolateMetric", GetIsolateMetric,
3971 get_isolate_metric_params }, 3984 get_isolate_metric_params },
3972 { "_getIsolateMetricList", GetIsolateMetricList, 3985 { "_getIsolateMetricList", GetIsolateMetricList,
3973 get_isolate_metric_list_params }, 3986 get_isolate_metric_list_params },
3974 { "getObject", GetObject, 3987 { "getObject", GetObject,
3975 get_object_params }, 3988 get_object_params },
3989 { "_getObjectStore", GetObjectStore,
3990 get_object_store_params },
3976 { "_getObjectByAddress", GetObjectByAddress, 3991 { "_getObjectByAddress", GetObjectByAddress,
3977 get_object_by_address_params }, 3992 get_object_by_address_params },
3978 { "_getPersistentHandles", GetPersistentHandles, 3993 { "_getPersistentHandles", GetPersistentHandles,
3979 get_persistent_handles_params, }, 3994 get_persistent_handles_params, },
3980 { "_getPorts", GetPorts, 3995 { "_getPorts", GetPorts,
3981 get_ports_params }, 3996 get_ports_params },
3982 { "_getReachableSize", GetReachableSize, 3997 { "_getReachableSize", GetReachableSize,
3983 get_reachable_size_params }, 3998 get_reachable_size_params },
3984 { "_getRetainedSize", GetRetainedSize, 3999 { "_getRetainedSize", GetRetainedSize,
3985 get_retained_size_params }, 4000 get_retained_size_params },
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
4042 if (strcmp(method_name, method.name) == 0) { 4057 if (strcmp(method_name, method.name) == 0) {
4043 return &method; 4058 return &method;
4044 } 4059 }
4045 } 4060 }
4046 return NULL; 4061 return NULL;
4047 } 4062 }
4048 4063
4049 #endif // !PRODUCT 4064 #endif // !PRODUCT
4050 4065
4051 } // namespace dart 4066 } // namespace dart
OLDNEW
« 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