| Index: runtime/vm/isolate.cc
|
| ===================================================================
|
| --- runtime/vm/isolate.cc (revision 45749)
|
| +++ 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,9 @@
|
| api_state()->weak_persistent_handles().VisitHandles(&visitor);
|
| api_state()->prologue_weak_persistent_handles().VisitHandles(&visitor);
|
|
|
| - CompilerStats::Print();
|
| + if (compiler_stats_ != NULL) {
|
| + compiler_stats()->Print();
|
| + }
|
| if (FLAG_trace_isolates) {
|
| heap()->PrintSizes();
|
| megamorphic_cache_table()->PrintSizes();
|
|
|