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

Side by Side Diff: runtime/observatory/lib/src/elements/class_view.dart

Issue 1162133002: Introduce Instance.kind. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: regis feedback Created 5 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 | « no previous file | runtime/observatory/lib/src/elements/error_ref.html » ('j') | 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 library class_view_element; 5 library class_view_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'observatory_element.dart'; 8 import 'observatory_element.dart';
9 import 'package:observatory/service.dart'; 9 import 'package:observatory/service.dart';
10 import 'package:polymer/polymer.dart'; 10 import 'package:polymer/polymer.dart';
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 // TODO(koda): Add no-arg "calculate-link" instead of reusing "eval-link". 40 // TODO(koda): Add no-arg "calculate-link" instead of reusing "eval-link".
41 Future<ServiceObject> retainedSize(var dummy) { 41 Future<ServiceObject> retainedSize(var dummy) {
42 return cls.isolate.getRetainedSize(cls).then((Instance obj) { 42 return cls.isolate.getRetainedSize(cls).then((Instance obj) {
43 retainedBytes = int.parse(obj.valueAsString); 43 retainedBytes = int.parse(obj.valueAsString);
44 }); 44 });
45 } 45 }
46 46
47 Future refresh() { 47 Future refresh() {
48 // TODO(turnidge): Reload all static fields as well, so we can detect
49 // changes to their values.
48 instances = null; 50 instances = null;
49 retainedBytes = null; 51 retainedBytes = null;
50 mostRetained = null; 52 mostRetained = null;
51 return cls.reload(); 53 return cls.reload();
52 } 54 }
53 55
54 Future refreshCoverage() { 56 Future refreshCoverage() {
55 return cls.refreshCoverage(); 57 return cls.refreshCoverage();
56 } 58 }
57 } 59 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/error_ref.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698