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

Unified Diff: runtime/vm/service_event.h

Issue 1765563002: Stream blocks of timeline events over the service protocol (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: runtime/vm/service_event.h
diff --git a/runtime/vm/service_event.h b/runtime/vm/service_event.h
index e5afb6d0deb5f857733c9580adaedec4a4ebf416..24101bf3ce859ec832628a1eecb3eabbdeb00370 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 {
@@ -43,6 +44,8 @@ class ServiceEvent {
kExtension,
+ kTimelineEvents,
+
kIllegal,
};
@@ -182,6 +185,15 @@ class ServiceEvent {
return timestamp_;
}
+ TimelineEventBlock* timeline_event_block() const {
+ return timeline_event_block_;
+ }
+
+ void set_timeline_event_block(TimelineEventBlock* block) {
+ ASSERT(kind() == kTimelineEvents);
+ timeline_event_block_ = block;
+ }
+
void PrintJSON(JSONStream* js) const;
void PrintJSONHeader(JSONObject* jsobj) const;
@@ -193,6 +205,7 @@ class ServiceEvent {
const char* embedder_stream_id_;
Breakpoint* breakpoint_;
ActivationFrame* top_frame_;
+ TimelineEventBlock* timeline_event_block_;
turnidge 2016/03/03 19:18:16 Out of curiosity, can this be const?
Cutch 2016/03/03 19:43:25 Done.
const String* extension_rpc_;
const Object* exception_;
bool at_async_jump_;

Powered by Google App Engine
This is Rietveld 408576698