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

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, 2 months 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 e81438f82ce0a89277ed05f9f109e58b744d7469..581cc82fed66bd6cfe03e8aff429598f78ef5c16 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"
@@ -94,6 +96,7 @@ const char* Dart::InitOnce(Dart_IsolateCreateCallback create,
FreeListElement::InitOnce();
Api::InitOnce();
CodeObservers::InitOnce();
+ ProfilerManager::InitOnce();
#if defined(USING_SIMULATOR)
Simulator::InitOnce();
#endif
@@ -168,6 +171,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