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

Unified Diff: runtime/vm/service_event.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/service_event.h
diff --git a/runtime/vm/service_event.h b/runtime/vm/service_event.h
index 576e634f11c2d9531fb2efc0488ecb1cdf5f866d..326805191a7b78aa7d7ad32f52815321cca9e9d5 100644
--- a/runtime/vm/service_event.h
+++ b/runtime/vm/service_event.h
@@ -51,20 +51,7 @@ class ServiceEvent {
const Instance* stack_trace;
};
- ServiceEvent(Isolate* isolate, EventKind event_kind)
- : isolate_(isolate),
- kind_(event_kind),
- embedder_kind_(NULL),
- embedder_stream_id_(NULL),
- breakpoint_(NULL),
- top_frame_(NULL),
- exception_(NULL),
- async_continuation_(NULL),
- at_async_jump_(false),
- inspectee_(NULL),
- gc_stats_(NULL),
- bytes_(NULL),
- bytes_length_(0) {}
+ ServiceEvent(Isolate* isolate, EventKind event_kind);
explicit ServiceEvent(const DebuggerEvent* debugger_event);
@@ -164,6 +151,10 @@ class ServiceEvent {
log_record_ = log_record;
}
+ int64_t timestamp() const {
+ return timestamp_;
+ }
+
void PrintJSON(JSONStream* js) const;
void PrintJSONHeader(JSONObject* jsobj) const;
@@ -183,6 +174,7 @@ class ServiceEvent {
const uint8_t* bytes_;
intptr_t bytes_length_;
LogRecord log_record_;
+ int64_t timestamp_;
};
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698