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

Unified Diff: runtime/vm/thread.cc

Issue 1975203003: Cleanup timeline stream enabled flag so that it can be easily tested from an intrinsic (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | « runtime/vm/thread.h ('k') | runtime/vm/timeline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread.cc
diff --git a/runtime/vm/thread.cc b/runtime/vm/thread.cc
index 3c7efeeebeb16259343d6bce5361bad10d36cd11..a892bd289e9b690a9a7c1d4b1f3d409a601b87c6 100644
--- a/runtime/vm/thread.cc
+++ b/runtime/vm/thread.cc
@@ -20,6 +20,7 @@
#include "vm/symbols.h"
#include "vm/thread_interrupter.h"
#include "vm/thread_registry.h"
+#include "vm/timeline.h"
namespace dart {
@@ -63,6 +64,7 @@ Thread::Thread(Isolate* isolate)
stack_limit_(0),
stack_overflow_flags_(0),
isolate_(NULL),
+ dart_stream_(NULL),
heap_(NULL),
top_exit_frame_info_(0),
store_buffer_block_(NULL),
@@ -96,6 +98,8 @@ Thread::Thread(Isolate* isolate)
safepoint_state_(0),
execution_state_(kThreadInVM),
next_(NULL) {
+ dart_stream_ = Timeline::GetDartStream();
+ ASSERT(dart_stream_ != NULL);
#define DEFAULT_INIT(type_name, member_name, init_expr, default_init_value) \
member_name = default_init_value;
CACHED_CONSTANTS_LIST(DEFAULT_INIT)
« no previous file with comments | « runtime/vm/thread.h ('k') | runtime/vm/timeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698