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

Side by Side Diff: runtime/bin/vmservice/observatory/lib/src/elements/service_view.dart

Issue 536273002: Teach the Observatory about WeakProperties (ephemerons). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: build Created 6 years, 3 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 | Annotate | Revision Log
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 service_object_view_element; 5 library service_object_view_element;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:logging/logging.dart'; 8 import 'package:logging/logging.dart';
9 import 'package:observatory/service.dart'; 9 import 'package:observatory/service.dart';
10 import 'package:observatory/tracer.dart'; 10 import 'package:observatory/tracer.dart';
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 case 'Int32x4': 69 case 'Int32x4':
70 case 'Float32x4': 70 case 'Float32x4':
71 case 'Float64x4': 71 case 'Float64x4':
72 case 'TypedData': 72 case 'TypedData':
73 case 'ExternalTypedData': 73 case 'ExternalTypedData':
74 case 'Capability': 74 case 'Capability':
75 case 'ReceivePort': 75 case 'ReceivePort':
76 case 'SendPort': 76 case 'SendPort':
77 case 'Stacktrace': 77 case 'Stacktrace':
78 case 'JSRegExp': 78 case 'JSRegExp':
79 case 'WeakProperty':
80 case 'UserTag': 79 case 'UserTag':
81 // TODO(turnidge): The types above this comment are instance 80 // TODO(turnidge): The types above this comment are instance
82 // types and should be handled by the InstanceViewElement. We 81 // types and should be handled by the InstanceViewElement. We
83 // need to go through these and make sure that they print in a 82 // need to go through these and make sure that they print in a
84 // reasonable way. 83 // reasonable way.
85 case 'Type': 84 case 'Type':
86 case 'Array': 85 case 'Array':
87 case 'Bool': 86 case 'Bool':
88 case 'Closure': 87 case 'Closure':
89 case 'Double': 88 case 'Double':
90 case 'GrowableObjectArray': 89 case 'GrowableObjectArray':
91 case 'Instance': 90 case 'Instance':
92 case 'Smi': 91 case 'Smi':
93 case 'Mint': 92 case 'Mint':
94 case 'MirrorReference': 93 case 'MirrorReference':
95 case 'Null': 94 case 'Null':
96 case 'Bigint': 95 case 'Bigint':
97 case 'String': 96 case 'String':
97 case 'WeakProperty':
98 InstanceViewElement element = new Element.tag('instance-view'); 98 InstanceViewElement element = new Element.tag('instance-view');
99 element.instance = object; 99 element.instance = object;
100 return element; 100 return element;
101 case 'IO': 101 case 'IO':
102 IOViewElement element = new Element.tag('io-view'); 102 IOViewElement element = new Element.tag('io-view');
103 element.io = object; 103 element.io = object;
104 return element; 104 return element;
105 case 'HttpServerList': 105 case 'HttpServerList':
106 IOHttpServerListViewElement element = 106 IOHttpServerListViewElement element =
107 new Element.tag('io-http-server-list-view'); 107 new Element.tag('io-http-server-list-view');
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 dynamic expander() { 260 dynamic expander() {
261 return expandEvent; 261 return expandEvent;
262 } 262 }
263 263
264 void expandEvent(bool exp, var done) { 264 void expandEvent(bool exp, var done) {
265 expand = exp; 265 expand = exp;
266 done(); 266 done();
267 } 267 }
268 } 268 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698