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

Unified Diff: runtime/vm/dart.cc

Issue 250883017: Collect samples during isolate startup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('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 0d6cc90263d3ffbdf5d8d13004b6bbbb174dee2e..5f88fbcd27b0c152ef2c3448efcc751e0938647f 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -217,6 +217,9 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
ObjectIdRing::Init(isolate);
ObjectStore::Init(isolate);
+ // Setup for profiling.
+ Profiler::InitProfilingForIsolate(isolate);
+
if (snapshot_buffer == NULL) {
const Error& error = Error::Handle(Object::Init(isolate));
if (!error.IsNull()) {
@@ -259,8 +262,6 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
isolate->class_table()->Print();
}
- // Setup for profiling.
- Profiler::InitProfilingForIsolate(isolate);
Service::SendIsolateStartupMessage();
// Create tag table.
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698