Index: runtime/vm/service_event.h |
diff --git a/runtime/vm/service_event.h b/runtime/vm/service_event.h |
index 208b1dfd1a4507842462d44125f7377542f9fbc5..3ca26e40a97c12f41b7b27c615178d0643afccd6 100644 |
--- a/runtime/vm/service_event.h |
+++ b/runtime/vm/service_event.h |
@@ -8,6 +8,7 @@ |
#include "vm/debugger.h" |
class DebuggerEvent; |
+class TimelineEventBlock; |
namespace dart { |
@@ -44,6 +45,8 @@ class ServiceEvent { |
kExtension, |
+ kTimelineEvents, |
+ |
kIllegal, |
}; |
@@ -183,6 +186,15 @@ class ServiceEvent { |
return timestamp_; |
} |
+ const TimelineEventBlock* timeline_event_block() const { |
+ return timeline_event_block_; |
+ } |
+ |
+ void set_timeline_event_block(const TimelineEventBlock* block) { |
+ ASSERT(kind() == kTimelineEvents); |
+ timeline_event_block_ = block; |
+ } |
+ |
void PrintJSON(JSONStream* js) const; |
void PrintJSONHeader(JSONObject* jsobj) const; |
@@ -194,6 +206,7 @@ class ServiceEvent { |
const char* embedder_stream_id_; |
Breakpoint* breakpoint_; |
ActivationFrame* top_frame_; |
+ const TimelineEventBlock* timeline_event_block_; |
const String* extension_rpc_; |
const Object* exception_; |
bool at_async_jump_; |