Index: runtime/vm/dart.cc |
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
index c6c557c6da041fe205bbc0876acb1db327f12e16..7503dd097b5d6acb3de68c9227747a3f4702c82e 100644 |
--- a/runtime/vm/dart.cc |
+++ b/runtime/vm/dart.cc |
@@ -16,6 +16,8 @@ |
#include "vm/object_store.h" |
#include "vm/object_id_ring.h" |
#include "vm/port.h" |
+#include "vm/profiler.h" |
+#include "vm/signal_handler.h" |
#include "vm/simulator.h" |
#include "vm/snapshot.h" |
#include "vm/stub_code.h" |
@@ -96,6 +98,7 @@ const char* Dart::InitOnce(Dart_IsolateCreateCallback create, |
FreeListElement::InitOnce(); |
Api::InitOnce(); |
CodeObservers::InitOnce(); |
+ ProfilerManager::InitOnce(); |
#if defined(USING_SIMULATOR) |
Simulator::InitOnce(); |
#endif |
@@ -170,6 +173,8 @@ const char* Dart::Cleanup() { |
vm_isolate_ = NULL; |
#endif |
+ ScopedSignalBlocker ssb; |
+ ProfilerManager::Shutdown(); |
CodeObservers::DeleteAll(); |
return NULL; |