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

Unified Diff: runtime/vm/isolate.cc

Issue 2007233002: Add --dump-megamorphic-stats. Lower megamorphic cache load factor to 50%. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index c6c61f5489af018ec0fcf5d1082aa9920dcab8c5..b184f6cce2a3bbfb3ceff21de569e12dabc6a94f 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -1608,9 +1608,11 @@ void Isolate::LowLevelShutdown() {
FinalizeWeakPersistentHandlesVisitor visitor;
api_state()->weak_persistent_handles().VisitHandles(&visitor);
+ if (FLAG_dump_megamorphic_stats) {
+ MegamorphicCacheTable::PrintSizes(this);
+ }
if (FLAG_trace_isolates) {
heap()->PrintSizes();
- MegamorphicCacheTable::PrintSizes(this);
Symbols::DumpStats();
OS::Print("[-] Stopping isolate:\n"
"\tisolate: %s\n", name());

Powered by Google App Engine
This is Rietveld 408576698