Commit 487f28fd authored by John McCutchan's avatar John McCutchan Committed by GitHub

Speedup devFS writing and improve status information (#5287)

parent e3f6d153
This diff is collapsed.
...@@ -363,7 +363,7 @@ class IOSSimulator extends Device { ...@@ -363,7 +363,7 @@ class IOSSimulator extends Device {
bool get supportsHotMode => true; bool get supportsHotMode => true;
@override @override
bool get needsDevFS => false; bool get needsDevFS => true;
_IOSSimulatorLogReader _logReader; _IOSSimulatorLogReader _logReader;
_IOSSimulatorDevicePortForwarder _portForwarder; _IOSSimulatorDevicePortForwarder _portForwarder;
......
...@@ -13,7 +13,7 @@ import 'globals.dart'; ...@@ -13,7 +13,7 @@ import 'globals.dart';
// TODO(johnmccutchan): Rename this class to ServiceProtocol or VmService. // TODO(johnmccutchan): Rename this class to ServiceProtocol or VmService.
class Observatory { class Observatory {
Observatory._(this.peer, this.port) { Observatory._(this.peer, this.port, this.httpAddress) {
peer.registerMethod('streamNotify', (rpc.Parameters event) { peer.registerMethod('streamNotify', (rpc.Parameters event) {
_handleStreamNotify(event.asMap); _handleStreamNotify(event.asMap);
}); });
...@@ -33,9 +33,10 @@ class Observatory { ...@@ -33,9 +33,10 @@ class Observatory {
WebSocket ws = await WebSocket.connect(uri.toString()); WebSocket ws = await WebSocket.connect(uri.toString());
rpc.Peer peer = new rpc.Peer(new IOWebSocketChannel(ws)); rpc.Peer peer = new rpc.Peer(new IOWebSocketChannel(ws));
peer.listen(); peer.listen();
return new Observatory._(peer, port); Uri httpAddress = new Uri(scheme: 'http', host: '127.0.0.1', port: port);
return new Observatory._(peer, port, httpAddress);
} }
final Uri httpAddress;
final rpc.Peer peer; final rpc.Peer peer;
final int port; final int port;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment