| Index: runtime/vm/service.cc
|
| diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
|
| index 197c77fe8f99e286d96e6a5c3e90e83c0dc60ed7..fa072d8c0ac20bbf344ab00970b8a4b13129f548 100644
|
| --- a/runtime/vm/service.cc
|
| +++ b/runtime/vm/service.cc
|
| @@ -45,6 +45,7 @@ namespace dart {
|
|
|
| DECLARE_FLAG(bool, trace_service);
|
| DECLARE_FLAG(bool, trace_service_pause_events);
|
| +DECLARE_FLAG(bool, profile_vm);
|
| DEFINE_FLAG(charp, vm_name, "vm",
|
| "The default name of this vm as reported by the VM service "
|
| "protocol");
|
| @@ -3642,6 +3643,7 @@ void Service::PrintJSONForVM(JSONStream* js, bool ref) {
|
| jsobj.AddProperty("targetCPU", CPU::Id());
|
| jsobj.AddProperty("hostCPU", HostCPUFeatures::hardware());
|
| jsobj.AddProperty("version", Version::String());
|
| + jsobj.AddProperty("_profilerMode", FLAG_profile_vm ? "VM" : "Dart");
|
| jsobj.AddProperty64("pid", OS::ProcessId());
|
| int64_t start_time_millis = (vm_isolate->start_time() /
|
| kMicrosecondsPerMillisecond);
|
|
|