| OLD | NEW |
| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 HeapMapElement element = new Element.tag('heap-map'); | 50 HeapMapElement element = new Element.tag('heap-map'); |
| 51 element.fragmentation = object; | 51 element.fragmentation = object; |
| 52 return element; | 52 return element; |
| 53 case 'Object': | 53 case 'Object': |
| 54 return (object) { | 54 return (object) { |
| 55 switch (object.vmType) { | 55 switch (object.vmType) { |
| 56 case 'ICData': | 56 case 'ICData': |
| 57 ICDataViewElement element = new Element.tag('icdata-view'); | 57 ICDataViewElement element = new Element.tag('icdata-view'); |
| 58 element.icData = object; | 58 element.icData = object; |
| 59 return element; | 59 return element; |
| 60 case 'Instructions': | |
| 61 InstructionsViewElement element = | |
| 62 new Element.tag('instructions-view'); | |
| 63 element.instructions = object; | |
| 64 return element; | |
| 65 case 'MegamorphicCache': | 60 case 'MegamorphicCache': |
| 66 MegamorphicCacheViewElement element = | 61 MegamorphicCacheViewElement element = |
| 67 new Element.tag('megamorphiccache-view'); | 62 new Element.tag('megamorphiccache-view'); |
| 68 element.megamorphicCache = object; | 63 element.megamorphicCache = object; |
| 69 return element; | 64 return element; |
| 70 case 'ObjectPool': | 65 case 'ObjectPool': |
| 71 ObjectPoolViewElement element = new Element.tag('objectpool-view')
; | 66 ObjectPoolViewElement element = new Element.tag('objectpool-view')
; |
| 72 element.pool = object; | 67 element.pool = object; |
| 73 return element; | 68 return element; |
| 74 default: | 69 default: |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 165 |
| 171 dynamic expander() { | 166 dynamic expander() { |
| 172 return expandEvent; | 167 return expandEvent; |
| 173 } | 168 } |
| 174 | 169 |
| 175 void expandEvent(bool exp, var done) { | 170 void expandEvent(bool exp, var done) { |
| 176 expand = exp; | 171 expand = exp; |
| 177 done(); | 172 done(); |
| 178 } | 173 } |
| 179 } | 174 } |
| OLD | NEW |