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

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
« no previous file with comments | « runtime/platform/thread_win.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/platform/thread_win.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698