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

Unified Diff: runtime/vm/dart.cc

Issue 25909002: Sampling profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 92bba64139f592be3bee829d0c9950cf8e4710ca..d02a6cfd71fc2b914df83b296997be8a1c4b88c0 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;

Powered by Google App Engine
This is Rietveld 408576698