Chromium Code Reviews| Index: runtime/vm/object.cc |
| =================================================================== |
| --- runtime/vm/object.cc (revision 37499) |
| +++ runtime/vm/object.cc (working copy) |
| @@ -4063,6 +4063,14 @@ |
| jsobj.AddPropertyF("name", "canonical types of %s", internal_class_name); |
| jsobj.AddPropertyF("user_name", "canonical types of %s", pretty_class_name); |
| } |
| + { |
| + ClassTable* class_table = Isolate::Current()->class_table(); |
| + const ClassHeapStats* stats = class_table->StatsWithUpdatedSize(id()); |
| + if (stats != NULL) { |
| + JSONObject allocation_stats(&jsobj, "allocation_stats"); |
|
Cutch
2014/06/20 18:10:49
new service fields use dartCamelCase
koda
2014/06/20 18:37:04
Done.
|
| + stats->PrintToJSONObject(*this, &allocation_stats); |
| + } |
| + } |
| } |