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

Unified Diff: runtime/vm/thread.h

Issue 1275113003: Endless thread safe timeline recorder (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/dart.cc ('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.h
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h
index 746d25ee616f16fa13d8e80eef71ce316c0f5d7e..c0721d9b1daf4ae688e686beb97e07b602d2af62 100644
--- a/runtime/vm/thread.h
+++ b/runtime/vm/thread.h
@@ -20,6 +20,7 @@ class Object;
class RawBool;
class RawObject;
class StackResource;
+class TimelineEventBlock;
class Zone;
@@ -197,6 +198,7 @@ class Thread {
Zone* zone;
uword top_exit_frame_info;
StackResource* top_resource;
+ TimelineEventBlock* timeline_block;
// TODO(koda): Migrate individual fields of InterruptableThreadState.
InterruptableThreadState* thread_state;
#if defined(DEBUG)
@@ -216,6 +218,14 @@ CACHED_CONSTANTS_LIST(DEFINE_OFFSET_METHOD)
static bool CanLoadFromThread(const Object& object);
static intptr_t OffsetFromThread(const Object& object);
+ TimelineEventBlock* timeline_block() const {
+ return state_.timeline_block;
+ }
+
+ void set_timeline_block(TimelineEventBlock* block) {
+ state_.timeline_block = block;
+ }
+
private:
static ThreadLocalKey thread_key_;
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/timeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698