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; |