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

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
Index: runtime/vm/thread.h
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h
index 2b2d343e94f419e3a95eae2745efe4f669e25254..a0b3c609617a94d3641e985bc33f03a9a95f2717 100644
--- a/runtime/vm/thread.h
+++ b/runtime/vm/thread.h
@@ -19,6 +19,7 @@ class Object;
class RawBool;
class RawObject;
class StackResource;
+class TimelineEventBlock;
class Zone;
@@ -187,6 +188,7 @@ class Thread {
Zone* zone;
uword top_exit_frame_info;
StackResource* top_resource;
+ TimelineEventBlock* current_block;
koda 2015/08/07 01:09:54 Name is a bit too general; consider adding "_timel
Cutch 2015/08/07 16:47:42 Done.
#if defined(DEBUG)
HandleScope* top_handle_scope;
intptr_t no_handle_scope_depth;
@@ -204,6 +206,14 @@ CACHED_CONSTANTS_LIST(DEFINE_OFFSET_METHOD)
static bool CanLoadFromThread(const Object& object);
static intptr_t OffsetFromThread(const Object& object);
+ TimelineEventBlock* current_block() const {
+ return state_.current_block;
+ }
+
+ void set_current_block(TimelineEventBlock* block) {
+ state_.current_block = block;
+ }
+
private:
static ThreadLocalKey thread_key_;
@@ -235,6 +245,7 @@ CACHED_CONSTANTS_LIST(DECLARE_MEMBERS)
static void SetCurrent(Thread* current);
void Schedule(Isolate* isolate);
+ void PostSchedule();
void Unschedule();
friend class ApiZone;
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/thread.cc » ('j') | runtime/vm/thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698