Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 927989f367f053979a87e6c357433581e1074a0d..617a5ebf5380a2f93e1b440f438ad4c232c5770d 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1879,6 +1879,10 @@ void Isolate::Deinit() { |
PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); |
} |
+ if (cpu_profiler_) { |
+ cpu_profiler_->DeleteAllProfiles(); |
+ } |
+ |
// We must stop the logger before we tear down other components. |
Sampler* sampler = logger_->sampler(); |
if (sampler && sampler->IsActive()) sampler->Stop(); |