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

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

Issue 1152283005: Revert "Add the streamListen and streamCancel rpcs to the vm service." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 a24b2f602905cb5ffaddb4f75c8c0bbf9cd224c9..ef8d5748ec6546ab04803baee0b9f18617912cae 100644
--- a/runtime/observatory/lib/src/app/application.dart
+++ b/runtime/observatory/lib/src/app/application.dart
@@ -53,8 +53,7 @@ class ObservatoryApplication extends Observable {
new ServiceEvent.connectionClosed(reason)));
});
- vm.isolateEvents.listen(_onEvent);
- vm.debugEvents.listen(_onEvent);
+ vm.events.stream.listen(_onEvent);
}
_vm = vm;
}
@@ -89,9 +88,11 @@ 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;
@@ -115,7 +116,7 @@ class ObservatoryApplication extends Observable {
default:
// Ignore unrecognized events.
- Logger.root.severe('Ignoring unexpected event: $event');
+ Logger.root.severe('Unrecognized 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