Index: runtime/vm/service_event.cc |
diff --git a/runtime/vm/service_event.cc b/runtime/vm/service_event.cc |
index 42dd2022f53e4197148edebd27d1afa1538bb893..1023043f73de0df196e7bd6ad5d64c88f9d25654 100644 |
--- a/runtime/vm/service_event.cc |
+++ b/runtime/vm/service_event.cc |
@@ -91,6 +91,8 @@ ServiceEvent::ServiceEvent(const DebuggerEvent* debugger_event) |
const char* ServiceEvent::KindAsCString() const { |
switch (kind()) { |
+ case kVMUpdate: |
+ return "VMUpdate"; |
case kIsolateStart: |
return "IsolateStart"; |
case kIsolateRunnable: |
@@ -138,6 +140,9 @@ const char* ServiceEvent::KindAsCString() const { |
const char* ServiceEvent::stream_id() const { |
switch (kind()) { |
+ case kVMUpdate: |
+ return Service::vm_stream.id(); |
+ |
case kIsolateStart: |
case kIsolateRunnable: |
case kIsolateExit: |
@@ -234,7 +239,11 @@ void ServiceEvent::PrintJSONHeader(JSONObject* jsobj) const { |
ASSERT(jsobj != NULL); |
jsobj->AddProperty("type", "Event"); |
jsobj->AddProperty("kind", KindAsCString()); |
- jsobj->AddProperty("isolate", isolate()); |
+ if (kind() == kVMUpdate) { |
+ jsobj->AddPropertyVM("vm"); |
+ } else { |
+ jsobj->AddProperty("isolate", isolate()); |
+ } |
ASSERT(timestamp_ != -1); |
jsobj->AddPropertyTimeMillis("timestamp", timestamp_); |
} |