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

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

Issue 2279203003: Converted Observatory megamorphiccache-view element (Closed)
Patch Set: Removed double Copyright notice Created 4 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
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 23 matching lines...) Expand all
34 FieldViewElement element = new Element.tag('field-view'); 34 FieldViewElement element = new Element.tag('field-view');
35 element.field = object; 35 element.field = object;
36 return element; 36 return element;
37 case 'Function': 37 case 'Function':
38 FunctionViewElement element = new Element.tag('function-view'); 38 FunctionViewElement element = new Element.tag('function-view');
39 element.function = object; 39 element.function = object;
40 return element; 40 return element;
41 case 'Object': 41 case 'Object':
42 return (object) { 42 return (object) {
43 switch (object.vmType) { 43 switch (object.vmType) {
44 case 'MegamorphicCache':
45 MegamorphicCacheViewElement element =
46 new Element.tag('megamorphiccache-view');
47 element.megamorphicCache = object;
48 return element;
49 case 'ObjectPool': 44 case 'ObjectPool':
50 ObjectPoolViewElement element = new Element.tag('objectpool-view') ; 45 ObjectPoolViewElement element = new Element.tag('objectpool-view') ;
51 element.pool = object; 46 element.pool = object;
52 return element; 47 return element;
53 default: 48 default:
54 ObjectViewElement element = new Element.tag('object-view'); 49 ObjectViewElement element = new Element.tag('object-view');
55 element.object = object; 50 element.object = object;
56 return element; 51 return element;
57 } 52 }
58 }(object); 53 }(object);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 144
150 dynamic expander() { 145 dynamic expander() {
151 return expandEvent; 146 return expandEvent;
152 } 147 }
153 148
154 void expandEvent(bool exp, var done) { 149 void expandEvent(bool exp, var done) {
155 expand = exp; 150 expand = exp;
156 done(); 151 done();
157 } 152 }
158 } 153 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698