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

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

Issue 199443008: Support doubles in observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 9 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
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/observatory_element.dart ('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 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 'Array': 55 case 'Array':
56 case 'Bool': 56 case 'Bool':
57 case 'Closure': 57 case 'Closure':
58 case 'Double':
58 case 'GrowableObjectArray': 59 case 'GrowableObjectArray':
59 case 'Instance': 60 case 'Instance':
60 case 'Smi': 61 case 'Smi':
61 case 'String': 62 case 'String':
62 InstanceViewElement element = new Element.tag('instance-view'); 63 InstanceViewElement element = new Element.tag('instance-view');
63 element.instance = object; 64 element.instance = object;
64 return element; 65 return element;
65 case 'Isolate': 66 case 'Isolate':
66 IsolateViewElement element = new Element.tag('isolate-view'); 67 IsolateViewElement element = new Element.tag('isolate-view');
67 element.isolate = object; 68 element.isolate = object;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 var type = object.serviceType; 102 var type = object.serviceType;
102 var element = _constructElementForObject(); 103 var element = _constructElementForObject();
103 if (element == null) { 104 if (element == null) {
104 Logger.root.info('Unable to find a view element for \'${type}\''); 105 Logger.root.info('Unable to find a view element for \'${type}\'');
105 return; 106 return;
106 } 107 }
107 children.add(element); 108 children.add(element);
108 Logger.root.info('Viewing object of \'${type}\''); 109 Logger.root.info('Viewing object of \'${type}\'');
109 } 110 }
110 } 111 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/observatory_element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698