Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(848)

Unified Diff: runtime/vm/heap.cc

Issue 487973002: Track per-class promotion stats. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/heap.cc
===================================================================
--- runtime/vm/heap.cc (revision 39373)
+++ runtime/vm/heap.cc (working copy)
@@ -222,6 +222,7 @@
RecordBeforeGC(kNew, reason);
UpdateClassHeapStatsBeforeGC(kNew);
new_space_->Scavenge(invoke_api_callbacks);
+ isolate()->class_table()->UpdatePromoted();
RecordAfterGC();
PrintStats();
if (old_space_->NeedsGarbageCollection()) {
@@ -273,6 +274,7 @@
RecordBeforeGC(kNew, kFull);
UpdateClassHeapStatsBeforeGC(kNew);
new_space_->Scavenge(kInvokeApiCallbacks);
+ isolate()->class_table()->UpdatePromoted();
RecordAfterGC();
PrintStats();
}

Powered by Google App Engine
This is Rietveld 408576698