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

Unified Diff: runtime/vm/debugger.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/debugger.cc
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
index 2855c1826009d6cc2882bb3f356cdadf2be7bba2..0cd16d852896199b9843d5d2687776c0c9e4dfb1 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -234,6 +234,11 @@ ActivationFrame::ActivationFrame(
}
+void DebuggerEvent::UpdateTimestamp() {
+ timestamp_ = OS::GetCurrentTimeMillis();
+}
+
+
bool Debugger::HasEventHandler() {
return ((event_handler_ != NULL) ||
Service::isolate_stream.enabled() ||
@@ -2314,6 +2319,7 @@ void Debugger::Pause(DebuggerEvent* event) {
ASSERT(obj_cache_ == NULL);
pause_event_ = event;
+ pause_event_->UpdateTimestamp();
obj_cache_ = new RemoteObjectCache(64);
InvokeEventHandler(event);
« no previous file with comments | « runtime/vm/debugger.h ('k') | runtime/vm/isolate.h » ('j') | runtime/vm/service/service.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698