Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(917)

Unified Diff: runtime/vm/service.cc

Issue 1311503004: Remember when an isolate was paused and subtly display it in Obseravatory (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index a517f21c1336952ecd5fd4c8cf688d5d8df1de74..2da04ef244fc93d31081a29967e2ad11bc0fe4e5 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -984,6 +984,7 @@ void Service::SendEchoEvent(Isolate* isolate, const char* text) {
if (text != NULL) {
event.AddProperty("text", text);
}
+ event.AddPropertyTimeMillis("timestamp", OS::GetCurrentTimeMillis());
}
}
}
@@ -2543,6 +2544,7 @@ void Service::SendGraphEvent(Isolate* isolate) {
event.AddProperty("type", "Event");
event.AddProperty("kind", "_Graph");
event.AddProperty("isolate", isolate);
+ event.AddPropertyTimeMillis("timestamp", OS::GetCurrentTimeMillis());
event.AddProperty("chunkIndex", i);
event.AddProperty("chunkCount", num_chunks);
@@ -2875,7 +2877,7 @@ static bool GetVM(Isolate* isolate, JSONStream* js) {
jsobj.AddProperty("_typeChecksEnabled", isolate->flags().type_checks());
int64_t start_time_millis = (Dart::vm_isolate()->start_time() /
kMicrosecondsPerMillisecond);
- jsobj.AddProperty64("startTime", start_time_millis);
+ jsobj.AddPropertyTimeMillis("startTime", start_time_millis);
// Construct the isolate list.
{
JSONArray jsarr(&jsobj, "isolates");

Powered by Google App Engine
This is Rietveld 408576698