Index: runtime/vm/class_table.cc |
diff --git a/runtime/vm/class_table.cc b/runtime/vm/class_table.cc |
index 8ec699b6bf21f4ca2f3d77bbc26ba122eeb4f344..1966b217ebcc47956415dada5beeda4f73203738 100644 |
--- a/runtime/vm/class_table.cc |
+++ b/runtime/vm/class_table.cc |
@@ -82,6 +82,12 @@ void ClassTable::FreeOldTables() { |
} |
+void ClassTable::TraceAllocationsFor(intptr_t cid, bool trace) { |
+ ClassHeapStats* stats = PreliminaryStatsAt(cid); |
+ stats->set_trace_allocation(trace); |
+} |
+ |
+ |
void ClassTable::Register(const Class& cls) { |
intptr_t index = cls.id(); |
if (index != kIllegalCid) { |
@@ -233,6 +239,7 @@ void ClassHeapStats::Initialize() { |
last_reset.Reset(); |
promoted_count = 0; |
promoted_size = 0; |
+ state_ = 0; |
} |