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

Unified Diff: runtime/vm/thread.h

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: rebase Created 3 years, 10 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/symbols.h ('k') | runtime/vm/thread.cc » ('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 b680a4f1bf6f6800fe7d11e3c28682abed975194..fe245a6a0dfa58fd5c5c2fe89e08bba0ba9f4c2e 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,14 @@ 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 set_raw_async_stack_trace(RawStackTrace* raw_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)
@@ -687,6 +697,7 @@ class Thread : public BaseThread {
StoreBufferBlock* store_buffer_block_;
uword vm_tag_;
TaskKind task_kind_;
+ RawStackTrace* async_stack_trace_;
// State that is cached in the TLS for fast access in generated code.
#define DECLARE_MEMBERS(type_name, member_name, expr, default_init_value) \
type_name member_name;
« no previous file with comments | « runtime/vm/symbols.h ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698