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

Unified Diff: runtime/observatory/lib/src/app/application.dart

Issue 1143783003: Add the streamListen and streamCancel rpcs to the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: before commit Created 5 years, 7 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/service_common.dart ('k') | runtime/observatory/lib/src/app/page.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/app/application.dart
diff --git a/runtime/observatory/lib/src/app/application.dart b/runtime/observatory/lib/src/app/application.dart
index ef74096fb64be8e836795d833d03ae55a61d0de0..14c6d29e3bb637c10c361b10a79b41b21a214c47 100644
--- a/runtime/observatory/lib/src/app/application.dart
+++ b/runtime/observatory/lib/src/app/application.dart
@@ -53,7 +53,8 @@ class ObservatoryApplication extends Observable {
new ServiceEvent.connectionClosed(reason)));
});
- vm.events.stream.listen(_onEvent);
+ vm.isolateEvents.listen(_onEvent);
+ vm.debugEvents.listen(_onEvent);
}
_vm = vm;
}
@@ -88,11 +89,9 @@ class ObservatoryApplication extends Observable {
switch(event.eventType) {
case ServiceEvent.kIsolateStart:
case ServiceEvent.kIsolateUpdate:
- case ServiceEvent.kGraph:
case ServiceEvent.kBreakpointAdded:
case ServiceEvent.kBreakpointResolved:
case ServiceEvent.kBreakpointRemoved:
- case ServiceEvent.kGC:
// Ignore for now.
break;
@@ -116,7 +115,7 @@ class ObservatoryApplication extends Observable {
default:
// Ignore unrecognized events.
- Logger.root.severe('Unrecognized event: $event');
+ Logger.root.severe('Ignoring unexpected event: $event');
break;
}
}
« no previous file with comments | « runtime/observatory/lib/service_common.dart ('k') | runtime/observatory/lib/src/app/page.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698