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

Unified Diff: runtime/vm/json_stream.cc

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/json_stream.h ('k') | runtime/vm/service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.cc
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc
index 94928ab5473c68bc54294f32f63391293246042f..a68d87d8553b56dfa0cd69cb70c75713ab62bbd0 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -475,12 +475,18 @@ void JSONStream::PrintValue(Isolate* isolate, bool ref) {
}
-void JSONStream::PrintValue(TimelineEvent* timeline_event) {
+void JSONStream::PrintValue(const TimelineEvent* timeline_event) {
PrintCommaIfNeeded();
timeline_event->PrintJSON(this);
}
+void JSONStream::PrintValue(const TimelineEventBlock* timeline_event_block) {
+ PrintCommaIfNeeded();
+ timeline_event_block->PrintJSON(this);
+}
+
+
void JSONStream::PrintValueVM(bool ref) {
PrintCommaIfNeeded();
Service::PrintJSONForVM(this, ref);
@@ -593,12 +599,19 @@ void JSONStream::PrintProperty(const char* name, Isolate* isolate) {
void JSONStream::PrintProperty(const char* name,
- TimelineEvent* timeline_event) {
+ const TimelineEvent* timeline_event) {
PrintPropertyName(name);
PrintValue(timeline_event);
}
+void JSONStream::PrintProperty(const char* name,
+ const TimelineEventBlock* timeline_event_block) {
+ PrintPropertyName(name);
+ PrintValue(timeline_event_block);
+}
+
+
void JSONStream::PrintfProperty(const char* name, const char* format, ...) {
PrintPropertyName(name);
va_list args;
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698