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

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
« no previous file with comments | « runtime/vm/service/service.md ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « runtime/vm/service/service.md ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698