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

Unified Diff: runtime/vm/thread.h

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: Observatory UI support Created 3 years, 11 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 57a7c1f69405478a110f470e7af729d1d31e5dbc..88b43388155e0280a60f5fd9a48357c79eae98b0 100644
--- a/runtime/vm/thread.h
+++ b/runtime/vm/thread.h
@@ -44,10 +44,12 @@ class RawObject;
class RawCode;
class RawError;
class RawGrowableObjectArray;
+class RawStackTrace;
class RawString;
class RuntimeEntry;
class Smi;
class StackResource;
+class StackTrace;
class String;
class TimelineStream;
class TypeArguments;
@@ -505,6 +507,13 @@ class Thread : public BaseThread {
void set_sticky_error(const Error& value);
void clear_sticky_error();
+ RawStackTrace* async_stack_trace() const;
+ void set_async_stack_trace(const StackTrace& stack_trace);
+ void clear_async_stack_trace();
+ static intptr_t async_stack_trace_offset() {
+ return OFFSET_OF(Thread, async_stack_trace_);
+ }
+
CompilerStats* compiler_stats() { return compiler_stats_; }
#if defined(DEBUG)
@@ -727,6 +736,7 @@ class Thread : public BaseThread {
uword resume_pc_;
RawError* sticky_error_;
+ RawStackTrace* async_stack_trace_;
rmacnak 2017/01/26 18:05:58 Move up to the "Accessed from generated code" bloc
Cutch 2017/01/31 23:45:31 Done.
CompilerStats* compiler_stats_;
« runtime/vm/stack_trace.cc ('K') | « runtime/vm/symbols.h ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698