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

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

Issue 262303002: Observatory grab-bag for 1.4 release. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 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 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/elements.dart'; 10 import 'package:observatory/elements.dart';
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 element.field = object; 45 element.field = object;
46 return element; 46 return element;
47 case 'Function': 47 case 'Function':
48 FunctionViewElement element = new Element.tag('function-view'); 48 FunctionViewElement element = new Element.tag('function-view');
49 element.function = object; 49 element.function = object;
50 return element; 50 return element;
51 case 'HeapMap': 51 case 'HeapMap':
52 HeapMapElement element = new Element.tag('heap-map'); 52 HeapMapElement element = new Element.tag('heap-map');
53 element.fragmentation = object; 53 element.fragmentation = object;
54 return element; 54 return element;
55 case 'LibraryPrefix':
56 case 'TypeRef':
57 case 'TypeParameter':
58 case 'BoundedType':
59 case 'Int32x4':
60 case 'Float32x4':
61 case 'Float64x4':
62 case 'TypedData':
63 case 'ExternalTypedData':
64 case 'Capability':
65 case 'ReceivePort':
66 case 'SendPort':
67 case 'Stacktrace':
68 case 'JSRegExp':
69 case 'WeakProperty':
70 case 'MirrorReference':
71 case 'UserTag':
72 // TODO(turnidge): The types above this comment are instance
73 // types and should be handled by the InstanceViewElement. We
74 // need to go through these and make sure that they print in a
75 // reasonable way.
76 case 'Type':
55 case 'Array': 77 case 'Array':
56 case 'Bool': 78 case 'Bool':
57 case 'Closure': 79 case 'Closure':
58 case 'Double': 80 case 'Double':
59 case 'GrowableObjectArray': 81 case 'GrowableObjectArray':
60 case 'Instance': 82 case 'Instance':
61 case 'Smi': 83 case 'Smi':
84 case 'Mint':
85 case 'Bigint':
62 case 'String': 86 case 'String':
63 case 'Type':
64 InstanceViewElement element = new Element.tag('instance-view'); 87 InstanceViewElement element = new Element.tag('instance-view');
65 element.instance = object; 88 element.instance = object;
66 return element; 89 return element;
67 case 'Isolate': 90 case 'Isolate':
68 IsolateViewElement element = new Element.tag('isolate-view'); 91 IsolateViewElement element = new Element.tag('isolate-view');
69 element.isolate = object; 92 element.isolate = object;
70 return element; 93 return element;
71 case 'Library': 94 case 'Library':
72 LibraryViewElement element = new Element.tag('library-view'); 95 LibraryViewElement element = new Element.tag('library-view');
73 element.library = object; 96 element.library = object;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 var type = object.serviceType; 138 var type = object.serviceType;
116 var element = _constructElementForObject(); 139 var element = _constructElementForObject();
117 if (element == null) { 140 if (element == null) {
118 Logger.root.info('Unable to find a view element for \'${type}\''); 141 Logger.root.info('Unable to find a view element for \'${type}\'');
119 return; 142 return;
120 } 143 }
121 children.add(element); 144 children.add(element);
122 Logger.root.info('Viewing object of \'${type}\''); 145 Logger.root.info('Viewing object of \'${type}\'');
123 } 146 }
124 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698