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

Unified Diff: runtime/vm/dart.cc

Issue 1170503004: Initial Timeline Events (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 4b6b5fbfd78d0fae4e3889c7489b90ecd7c10267..ee48e117027baa7a880064dae11f8e32fd25ea59 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -27,6 +27,7 @@
#include "vm/symbols.h"
#include "vm/thread_interrupter.h"
#include "vm/thread_pool.h"
+#include "vm/timeline.h"
#include "vm/virtual_memory.h"
#include "vm/zone.h"
@@ -317,6 +318,8 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
const UserTag& default_tag = UserTag::Handle(UserTag::DefaultTag());
isolate->set_current_tag(default_tag);
+ isolate->SetTimelineEventBuffer(new TimelineEventBuffer());
+
if (FLAG_keep_code) {
isolate->set_deoptimized_code_array(
GrowableObjectArray::Handle(GrowableObjectArray::New()));

Powered by Google App Engine
This is Rietveld 408576698