| 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 28 matching lines...) Expand all Loading... |
| 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': | 44 case 'MegamorphicCache': |
| 45 MegamorphicCacheViewElement element = | 45 MegamorphicCacheViewElement element = |
| 46 new Element.tag('megamorphiccache-view'); | 46 new Element.tag('megamorphiccache-view'); |
| 47 element.megamorphicCache = object; | 47 element.megamorphicCache = object; |
| 48 return element; | 48 return element; |
| 49 case 'ObjectPool': | |
| 50 ObjectPoolViewElement element = new Element.tag('objectpool-view')
; | |
| 51 element.pool = object; | |
| 52 return element; | |
| 53 default: | 49 default: |
| 54 ObjectViewElement element = new Element.tag('object-view'); | 50 ObjectViewElement element = new Element.tag('object-view'); |
| 55 element.object = object; | 51 element.object = object; |
| 56 return element; | 52 return element; |
| 57 } | 53 } |
| 58 }(object); | 54 }(object); |
| 59 case 'Isolate': | 55 case 'Isolate': |
| 60 IsolateViewElement element = new Element.tag('isolate-view'); | 56 IsolateViewElement element = new Element.tag('isolate-view'); |
| 61 element.isolate = object; | 57 element.isolate = object; |
| 62 return element; | 58 return element; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 145 |
| 150 dynamic expander() { | 146 dynamic expander() { |
| 151 return expandEvent; | 147 return expandEvent; |
| 152 } | 148 } |
| 153 | 149 |
| 154 void expandEvent(bool exp, var done) { | 150 void expandEvent(bool exp, var done) { |
| 155 expand = exp; | 151 expand = exp; |
| 156 done(); | 152 done(); |
| 157 } | 153 } |
| 158 } | 154 } |
| OLD | NEW |