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

Unified Diff: runtime/vm/isolate.cc

Issue 1127383008: Fix CompilerStats info (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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
===================================================================
--- runtime/vm/isolate.cc (revision 45740)
+++ runtime/vm/isolate.cc (working copy)
@@ -594,6 +594,7 @@
defer_finalization_count_(0),
deopt_context_(NULL),
edge_counter_increment_size_(-1),
+ compiler_stats_(NULL),
is_service_isolate_(false),
log_(new class Log()),
stacktrace_(NULL),
@@ -660,6 +661,8 @@
gc_epilogue_callback_(NULL),
defer_finalization_count_(0),
deopt_context_(NULL),
+ edge_counter_increment_size_(-1),
+ compiler_stats_(NULL),
is_service_isolate_(false),
log_(new class Log()),
stacktrace_(NULL),
@@ -705,6 +708,10 @@
log_ = NULL;
delete pause_loop_monitor_;
pause_loop_monitor_ = NULL;
+ if (compiler_stats_ != NULL) {
+ delete compiler_stats_;
+ compiler_stats_ = NULL;
+ }
}
@@ -776,7 +783,9 @@
"\tisolate: %s\n", result->name());
}
}
-
+ if (FLAG_compiler_stats) {
+ result->compiler_stats_ = new CompilerStats(result);
+ }
// Add to isolate list.
AddIsolateTolist(result);
@@ -1431,7 +1440,7 @@
api_state()->weak_persistent_handles().VisitHandles(&visitor);
api_state()->prologue_weak_persistent_handles().VisitHandles(&visitor);
- CompilerStats::Print();
+ compiler_stats()->Print();
siva 2015/05/12 22:12:32 Shouldn't this also be conditional under FLAG_comp
hausner 2015/05/12 22:49:53 Ah, good catch.
if (FLAG_trace_isolates) {
heap()->PrintSizes();
megamorphic_cache_table()->PrintSizes();
« runtime/vm/compiler_stats.h ('K') | « runtime/vm/isolate.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698