OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 part of models; | 5 part of models; |
6 | 6 |
7 abstract class ObjectRef { | 7 abstract class ObjectRef { |
8 /// A unique identifier for an Object. | 8 /// A unique identifier for an Object. |
9 String get id; | 9 String get id; |
10 } | 10 } |
(...skipping 10 matching lines...) Expand all Loading... |
21 ClassRef get clazz; | 21 ClassRef get clazz; |
22 | 22 |
23 /// [optional] The size of this object in the heap. | 23 /// [optional] The size of this object in the heap. |
24 /// | 24 /// |
25 /// If an object is not heap-allocated, then this field is omitted. | 25 /// If an object is not heap-allocated, then this field is omitted. |
26 /// | 26 /// |
27 /// Note that the size can be zero for some objects. In the current | 27 /// Note that the size can be zero for some objects. In the current |
28 /// VM implementation, this occurs for small integers, which are | 28 /// VM implementation, this occurs for small integers, which are |
29 /// stored entirely within their object pointers. | 29 /// stored entirely within their object pointers. |
30 int get size; | 30 int get size; |
| 31 |
| 32 String get vmName; |
31 } | 33 } |
| 34 |
| 35 abstract class RetainingObject { |
| 36 int get retainedSize; |
| 37 ObjectRef get object; |
| 38 } |
OLD | NEW |