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

Unified Diff: runtime/vm/isolate.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/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 0b8a1b07a09d5fdcc2b199c1f08edff5e9d95aed..853896dc0c029918c590b615f10964a7a7b7119b 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -661,6 +661,7 @@ Isolate::Isolate(const Dart_IsolateFlags& api_flags)
debugger_(NULL),
single_step_(false),
resume_request_(false),
+ last_resume_timestamp_(OS::GetCurrentTimeMillis()),
has_compiled_(false),
flags_(),
random_(),
@@ -1674,7 +1675,7 @@ void Isolate::PrintJSON(JSONStream* stream, bool ref) {
return;
}
int64_t start_time_millis = start_time() / kMicrosecondsPerMillisecond;
- jsobj.AddProperty64("startTime", start_time_millis);
+ jsobj.AddPropertyTimeMillis("startTime", start_time_millis);
IsolateSpawnState* state = spawn_state();
if (state != NULL) {
const Object& entry = Object::Handle(this, state->ResolveFunction());

Powered by Google App Engine
This is Rietveld 408576698