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

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

Issue 197923005: Visualize heap fragmentation in Observatory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
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 30 matching lines...) Expand all
41 element.error = object; 41 element.error = object;
42 return element; 42 return element;
43 case 'Field': 43 case 'Field':
44 FieldViewElement element = new Element.tag('field-view'); 44 FieldViewElement element = new Element.tag('field-view');
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':
52 HeapMapElement element = new Element.tag('heap-map');
53 element.fragmentation = object;
54 return element;
51 case 'Array': 55 case 'Array':
52 case 'Bool': 56 case 'Bool':
53 case 'Closure': 57 case 'Closure':
54 case 'GrowableObjectArray': 58 case 'GrowableObjectArray':
55 case 'Instance': 59 case 'Instance':
56 case 'Smi': 60 case 'Smi':
57 case 'String': 61 case 'String':
58 InstanceViewElement element = new Element.tag('instance-view'); 62 InstanceViewElement element = new Element.tag('instance-view');
59 element.instance = object; 63 element.instance = object;
60 return element; 64 return element;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 var type = object.serviceType; 97 var type = object.serviceType;
94 var element = _constructElementForObject(); 98 var element = _constructElementForObject();
95 if (element == null) { 99 if (element == null) {
96 Logger.root.info('Unable to find a view element for \'${type}\''); 100 Logger.root.info('Unable to find a view element for \'${type}\'');
97 return; 101 return;
98 } 102 }
99 children.add(element); 103 children.add(element);
100 Logger.root.info('Viewing object of \'${type}\''); 104 Logger.root.info('Viewing object of \'${type}\'');
101 } 105 }
102 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698