Chromium Code Reviews| Index: runtime/bin/vmservice/client/lib/src/service/object.dart |
| =================================================================== |
| --- runtime/bin/vmservice/client/lib/src/service/object.dart (revision 37499) |
| +++ runtime/bin/vmservice/client/lib/src/service/object.dart (working copy) |
| @@ -1044,8 +1044,8 @@ |
| @observable ServiceMap error; |
| - final Allocations newSpace = new Allocations(); |
| - final Allocations oldSpace = new Allocations(); |
| + @reflectable final Allocations newSpace = new Allocations(); |
|
Cutch
2014/06/20 18:10:49
@reflectable should no longer be needed with polym
koda
2014/06/20 18:37:04
Done.
|
| + @reflectable final Allocations oldSpace = new Allocations(); |
| bool get hasNoAllocations => newSpace.empty && oldSpace.empty; |
| @@ -1109,6 +1109,12 @@ |
| superClass._addToChildren(this); |
| } |
| error = map['error']; |
| + |
| + var allocation_stats = map['allocation_stats']; |
|
Cutch
2014/06/20 18:10:49
New service fields should use dartCamelCase.
koda
2014/06/20 18:37:04
Done.
|
| + if (allocation_stats != null) { |
| + newSpace.update(allocation_stats['new']); |
| + oldSpace.update(allocation_stats['old']); |
| + } |
| } |
| void _addToChildren(Class cls) { |