Chromium Code Reviews| Index: runtime/vm/service.cc |
| diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
| index bd24d2a39a71a73e14565a2e76dcc94e8c36e51d..2798aa95f10c09de397f8b84a08621d7094631dc 100644 |
| --- a/runtime/vm/service.cc |
| +++ b/runtime/vm/service.cc |
| @@ -1667,9 +1667,11 @@ static bool HandleAllocationProfile(Isolate* isolate, JSONStream* js) { |
| } |
| } |
| if (should_reset_accumulator) { |
| + isolate->timestampLastAllocationProfileAccumulatorReset(); |
| isolate->class_table()->ResetAllocationAccumulators(); |
| } |
| if (should_collect) { |
| + isolate->timestampLastAllocationProfileGC(); |
| isolate->heap()->CollectAllGarbage(); |
| } |
| isolate->class_table()->AllocationProfilePrintJSON(js); |
| @@ -1938,6 +1940,7 @@ static bool HandleVM(JSONStream* js) { |
| jsobj.AddProperty("id", "vm"); |
| jsobj.AddProperty("targetCPU", CPU::Id()); |
| jsobj.AddProperty("hostCPU", HostCPUFeatures::hardware()); |
| + jsobj.AddPropertyF("date", "%" Pd64 "", OS::GetCurrentTimeMillis()); |
|
koda
2014/06/17 21:04:07
It's potentially confusing that 'date' is in milli
|
| jsobj.AddProperty("version", Version::String()); |
| jsobj.AddProperty("assertsEnabled", FLAG_enable_asserts); |
| jsobj.AddProperty("typeChecksEnabled", FLAG_enable_type_checks); |