| 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 24 matching lines...) Expand all Loading... |
| 35 element.error = object; | 35 element.error = object; |
| 36 return element; | 36 return element; |
| 37 case 'Field': | 37 case 'Field': |
| 38 FieldViewElement element = new Element.tag('field-view'); | 38 FieldViewElement element = new Element.tag('field-view'); |
| 39 element.field = object; | 39 element.field = object; |
| 40 return element; | 40 return element; |
| 41 case 'Function': | 41 case 'Function': |
| 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': | |
| 46 HeapMapElement element = new Element.tag('heap-map'); | |
| 47 element.fragmentation = object; | |
| 48 return element; | |
| 49 case 'Object': | 45 case 'Object': |
| 50 return (object) { | 46 return (object) { |
| 51 switch (object.vmType) { | 47 switch (object.vmType) { |
| 52 case 'MegamorphicCache': | 48 case 'MegamorphicCache': |
| 53 MegamorphicCacheViewElement element = | 49 MegamorphicCacheViewElement element = |
| 54 new Element.tag('megamorphiccache-view'); | 50 new Element.tag('megamorphiccache-view'); |
| 55 element.megamorphicCache = object; | 51 element.megamorphicCache = object; |
| 56 return element; | 52 return element; |
| 57 case 'ObjectPool': | 53 case 'ObjectPool': |
| 58 ObjectPoolViewElement element = new Element.tag('objectpool-view')
; | 54 ObjectPoolViewElement element = new Element.tag('objectpool-view')
; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 153 |
| 158 dynamic expander() { | 154 dynamic expander() { |
| 159 return expandEvent; | 155 return expandEvent; |
| 160 } | 156 } |
| 161 | 157 |
| 162 void expandEvent(bool exp, var done) { | 158 void expandEvent(bool exp, var done) { |
| 163 expand = exp; | 159 expand = exp; |
| 164 done(); | 160 done(); |
| 165 } | 161 } |
| 166 } | 162 } |
| OLD | NEW |