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

Unified Diff: runtime/observatory/lib/event.dart

Issue 2299893003: Converted Observatory logging-page element (Closed)
Patch Set: Updated observatory_sources.gypi Created 4 years, 3 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
« no previous file with comments | « runtime/observatory/lib/elements.html ('k') | runtime/observatory/lib/src/app/application.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/event.dart
diff --git a/runtime/observatory/lib/event.dart b/runtime/observatory/lib/event.dart
index 6f37f586e25f5d610504967858369ff2f9c14f37..ce30fb2b3b2ffe680612313827ac54d9010bfbbe 100644
--- a/runtime/observatory/lib/event.dart
+++ b/runtime/observatory/lib/event.dart
@@ -219,6 +219,17 @@ class GCEvent implements M.GCEvent {
}
}
+class LoggingEvent implements M.LoggingEvent {
+ final DateTime timestamp;
+ final M.IsolateRef isolate;
+ final Map logRecord;
+ LoggingEvent(this.timestamp, this.isolate, this.logRecord) {
+ assert(timestamp != null);
+ assert(isolate != null);
+ assert(logRecord != null);
+ }
+}
+
class ExtensionEvent implements M.ExtensionEvent {
final DateTime timestamp;
final M.IsolateRef isolate;
@@ -290,6 +301,8 @@ M.Event createEventFromServiceEvent(S.ServiceEvent event) {
return new PauseBreakpointEvent(event.timestamp, event.isolate,
event.pauseBreakpoints, event.topFrame, event.atAsyncSuspension,
event.breakpoint);
+ case S.Isolate.kLoggingStream:
+ return new LoggingEvent(event.timestamp, event.isolate, event.logRecord);
case S.ServiceEvent.kPauseInterrupted:
return new PauseInterruptedEvent(event.timestamp, event.isolate,
event.topFrame, event.atAsyncSuspension);
« no previous file with comments | « runtime/observatory/lib/elements.html ('k') | runtime/observatory/lib/src/app/application.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698