| Index: runtime/vm/class_table.cc
|
| diff --git a/runtime/vm/class_table.cc b/runtime/vm/class_table.cc
|
| index 8c05780ce2f0ff971631e813a3b58425659e0272..9052091d0165b7e0ec21c8362d534fd422a8bfd2 100644
|
| --- a/runtime/vm/class_table.cc
|
| +++ b/runtime/vm/class_table.cc
|
| @@ -243,6 +243,7 @@ void ClassHeapStats::ResetAccumulator() {
|
| void ClassHeapStats::PrintTOJSONArray(const Class& cls, JSONArray* array) {
|
| JSONObject obj(array);
|
| obj.AddProperty("type", "ClassHeapStats");
|
| + obj.AddPropertyF("id", "allocationprofile/%" Pd "", cls.id());
|
| obj.AddProperty("class", cls);
|
| {
|
| JSONArray new_stats(&obj, "new");
|
| @@ -331,6 +332,7 @@ void ClassTable::AllocationProfilePrintToJSONStream(JSONStream* stream) {
|
| ASSERT(heap != NULL);
|
| JSONObject obj(stream);
|
| obj.AddProperty("type", "AllocationProfile");
|
| + obj.AddProperty("id", "allocationprofile");
|
| {
|
| JSONObject heaps(&obj, "heaps");
|
| {
|
|
|