| Index: runtime/vm/isolate.cc
|
| diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
|
| index 0178111d828f9057fcaefddda708e719450a1fa0..41b223fef84de6de97cd6c4150a65fe68a3fc47e 100644
|
| --- a/runtime/vm/isolate.cc
|
| +++ b/runtime/vm/isolate.cc
|
| @@ -1496,12 +1496,6 @@ void Isolate::LowLevelShutdown() {
|
| HandleScope handle_scope(thread);
|
| NoSafepointScope no_safepoint_scope;
|
|
|
| - if (FLAG_compiler_stats
|
| - && !ServiceIsolate::IsServiceIsolate(this)
|
| - && (this != Dart::vm_isolate())) {
|
| - OS::Print("%s", compiler_stats()->PrintToZone());
|
| - }
|
| -
|
| // Notify exit listeners that this isolate is shutting down.
|
| if (object_store() != NULL) {
|
| NotifyExitListeners();
|
| @@ -1577,6 +1571,13 @@ void Isolate::Shutdown() {
|
| !ServiceIsolate::IsServiceIsolateDescendant(this)) {
|
| CodeCoverage::Write(this);
|
| }
|
| +
|
| + // Write compiler stats data if enabled.
|
| + if (FLAG_compiler_stats
|
| + && !ServiceIsolate::IsServiceIsolateDescendant(this)
|
| + && (this != Dart::vm_isolate())) {
|
| + OS::Print("%s", compiler_stats()->PrintToZone());
|
| + }
|
| }
|
|
|
| // Remove this isolate from the list *before* we start tearing it down, to
|
|
|