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

Unified Diff: runtime/vm/debugger.h

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.h
diff --git a/runtime/vm/debugger.h b/runtime/vm/debugger.h
index 15893d19966d39c5ef8986a2a07f4d08d446d0b6..396e8b247617c4715ae62f179f20a1c5d3813f29 100644
--- a/runtime/vm/debugger.h
+++ b/runtime/vm/debugger.h
@@ -355,7 +355,8 @@ class DebuggerEvent {
breakpoint_(NULL),
exception_(NULL),
async_continuation_(NULL),
- at_async_jump_(false) {}
+ at_async_jump_(false),
+ timestamp_(-1) {}
Isolate* isolate() const { return isolate_; }
@@ -414,6 +415,12 @@ class DebuggerEvent {
return isolate_->main_port();
}
+ void UpdateTimestamp();
+
+ int64_t timestamp() const {
+ return timestamp_;
+ }
+
private:
Isolate* isolate_;
EventType type_;
@@ -422,6 +429,7 @@ class DebuggerEvent {
const Object* exception_;
const Object* async_continuation_;
bool at_async_jump_;
+ int64_t timestamp_;
};

Powered by Google App Engine
This is Rietveld 408576698