Index: runtime/vm/json_stream.cc |
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc |
index b5da5ddc01066981ab98411afdcf64be1c487cf2..2f92daa709accae3701713cb888e7425715d1677 100644 |
--- a/runtime/vm/json_stream.cc |
+++ b/runtime/vm/json_stream.cc |
@@ -10,8 +10,8 @@ |
#include "vm/message.h" |
#include "vm/metrics.h" |
#include "vm/object.h" |
-#include "vm/service_event.h" |
#include "vm/service.h" |
+#include "vm/service_event.h" |
#include "vm/timeline.h" |
#include "vm/unicode.h" |
@@ -443,6 +443,12 @@ void JSONStream::PrintValue(TimelineEvent* timeline_event) { |
} |
+void JSONStream::PrintValueVM(bool ref) { |
+ PrintCommaIfNeeded(); |
+ Service::PrintJSONForVM(this, ref); |
+} |
+ |
+ |
void JSONStream::PrintServiceId(const Object& o) { |
ASSERT(id_zone_ != NULL); |
PrintProperty("id", id_zone_->GetServiceId(o)); |
@@ -594,6 +600,12 @@ void JSONStream::PrintProperty(const char* name, const Object& o, bool ref) { |
} |
+void JSONStream::PrintPropertyVM(const char* name, bool ref) { |
+ PrintPropertyName(name); |
+ PrintValueVM(ref); |
+} |
+ |
+ |
void JSONStream::PrintPropertyName(const char* name) { |
ASSERT(name != NULL); |
PrintCommaIfNeeded(); |