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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 1453983002: Add RPC and UI for reachable size of an object / all instances of a class. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of service; 5 part of service;
6 6
7 /// Helper function for canceling a Future<StreamSubscription>. 7 /// Helper function for canceling a Future<StreamSubscription>.
8 Future cancelFutureSubscription( 8 Future cancelFutureSubscription(
9 Future<StreamSubscription> subscriptionFuture) async { 9 Future<StreamSubscription> subscriptionFuture) async {
10 if (subscriptionFuture != null) { 10 if (subscriptionFuture != null) {
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1681 1681
1682 Future<ServiceObject> evalFrame(int frameIndex, 1682 Future<ServiceObject> evalFrame(int frameIndex,
1683 String expression) { 1683 String expression) {
1684 Map params = { 1684 Map params = {
1685 'frameIndex': frameIndex, 1685 'frameIndex': frameIndex,
1686 'expression': expression, 1686 'expression': expression,
1687 }; 1687 };
1688 return invokeRpc('evaluateInFrame', params); 1688 return invokeRpc('evaluateInFrame', params);
1689 } 1689 }
1690 1690
1691 Future<ServiceObject> getReachableSize(ServiceObject target) {
1692 Map params = {
1693 'targetId': target.id,
1694 };
1695 return invokeRpc('_getReachableSize', params);
1696 }
1697
1691 Future<ServiceObject> getRetainedSize(ServiceObject target) { 1698 Future<ServiceObject> getRetainedSize(ServiceObject target) {
1692 Map params = { 1699 Map params = {
1693 'targetId': target.id, 1700 'targetId': target.id,
1694 }; 1701 };
1695 return invokeRpc('_getRetainedSize', params); 1702 return invokeRpc('_getRetainedSize', params);
1696 } 1703 }
1697 1704
1698 Future<ServiceObject> getRetainingPath(ServiceObject target, var limit) { 1705 Future<ServiceObject> getRetainingPath(ServiceObject target, var limit) {
1699 Map params = { 1706 Map params = {
1700 'targetId': target.id, 1707 'targetId': target.id,
(...skipping 2321 matching lines...) Expand 10 before | Expand all | Expand 10 after
4022 var v = list[i]; 4029 var v = list[i];
4023 if ((v is ObservableMap) && _isServiceMap(v)) { 4030 if ((v is ObservableMap) && _isServiceMap(v)) {
4024 list[i] = owner.getFromMap(v); 4031 list[i] = owner.getFromMap(v);
4025 } else if (v is ObservableList) { 4032 } else if (v is ObservableList) {
4026 _upgradeObservableList(v, owner); 4033 _upgradeObservableList(v, owner);
4027 } else if (v is ObservableMap) { 4034 } else if (v is ObservableMap) {
4028 _upgradeObservableMap(v, owner); 4035 _upgradeObservableMap(v, owner);
4029 } 4036 }
4030 } 4037 }
4031 } 4038 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698