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

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

Issue 2271083002: Converted Observatory icdata-view element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed layout & text 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 FunctionViewElement element = new Element.tag('function-view'); 42 FunctionViewElement element = new Element.tag('function-view');
43 element.function = object; 43 element.function = object;
44 return element; 44 return element;
45 case 'HeapMap': 45 case 'HeapMap':
46 HeapMapElement element = new Element.tag('heap-map'); 46 HeapMapElement element = new Element.tag('heap-map');
47 element.fragmentation = object; 47 element.fragmentation = object;
48 return element; 48 return element;
49 case 'Object': 49 case 'Object':
50 return (object) { 50 return (object) {
51 switch (object.vmType) { 51 switch (object.vmType) {
52 case 'ICData':
53 ICDataViewElement element = new Element.tag('icdata-view');
54 element.icData = object;
55 return element;
56 case 'MegamorphicCache': 52 case 'MegamorphicCache':
57 MegamorphicCacheViewElement element = 53 MegamorphicCacheViewElement element =
58 new Element.tag('megamorphiccache-view'); 54 new Element.tag('megamorphiccache-view');
59 element.megamorphicCache = object; 55 element.megamorphicCache = object;
60 return element; 56 return element;
61 case 'ObjectPool': 57 case 'ObjectPool':
62 ObjectPoolViewElement element = new Element.tag('objectpool-view') ; 58 ObjectPoolViewElement element = new Element.tag('objectpool-view') ;
63 element.pool = object; 59 element.pool = object;
64 return element; 60 return element;
65 default: 61 default:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 157
162 dynamic expander() { 158 dynamic expander() {
163 return expandEvent; 159 return expandEvent;
164 } 160 }
165 161
166 void expandEvent(bool exp, var done) { 162 void expandEvent(bool exp, var done) {
167 expand = exp; 163 expand = exp;
168 done(); 164 done();
169 } 165 }
170 } 166 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/object_common.dart ('k') | runtime/observatory/lib/src/models/objects/icdata.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698