Index: runtime/vm/json_stream.h |
diff --git a/runtime/vm/json_stream.h b/runtime/vm/json_stream.h |
index 56732cec9a824223e3023c6039e037d55e09aee5..4ada4e78714454238d3636311bebd198da3decd4 100644 |
--- a/runtime/vm/json_stream.h |
+++ b/runtime/vm/json_stream.h |
@@ -10,9 +10,11 @@ |
#include "vm/allocation.h" |
#include "vm/service.h" |
+ |
namespace dart { |
class Array; |
+class Breakpoint; |
class Field; |
class GrowableObjectArray; |
class Instance; |
@@ -23,8 +25,8 @@ class Metric; |
class Object; |
class Script; |
class ServiceEvent; |
-class Breakpoint; |
class String; |
+class TimelineEvent; |
class Zone; |
@@ -128,6 +130,7 @@ class JSONStream : ValueObject { |
void PrintValue(MessageQueue* queue); |
void PrintValue(Isolate* isolate, bool ref = true); |
bool PrintValueStr(const String& s, intptr_t limit); |
+ void PrintValue(TimelineEvent* timeline_event); |
void PrintServiceId(const Object& o); |
void PrintPropertyBool(const char* name, bool b); |
@@ -149,6 +152,7 @@ class JSONStream : ValueObject { |
void PrintProperty(const char* name, Metric* metric); |
void PrintProperty(const char* name, MessageQueue* queue); |
void PrintProperty(const char* name, Isolate* isolate); |
+ void PrintProperty(const char* name, TimelineEvent* timeline_event); |
void PrintPropertyName(const char* name); |
void PrintCommaIfNeeded(); |
bool NeedComma(); |
@@ -247,6 +251,9 @@ class JSONObject : public ValueObject { |
void AddProperty(const char* name, Isolate* isolate) const { |
stream_->PrintProperty(name, isolate); |
} |
+ void AddProperty(const char* name, TimelineEvent* timeline_event) const { |
+ stream_->PrintProperty(name, timeline_event); |
+ } |
void AddPropertyF(const char* name, const char* format, ...) const |
PRINTF_ATTRIBUTE(3, 4); |
@@ -298,6 +305,9 @@ class JSONArray : public ValueObject { |
void AddValue(MessageQueue* queue) const { |
stream_->PrintValue(queue); |
} |
+ void AddValue(TimelineEvent* timeline_event) const { |
+ stream_->PrintValue(timeline_event); |
+ } |
void AddValueF(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3); |
private: |