Skip to content

Faster DevTools launch #747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 18, 2019
Merged

Faster DevTools launch #747

merged 10 commits into from
Oct 18, 2019

Conversation

grouma
Copy link
Member

@grouma grouma commented Oct 17, 2019

  • No longer wait for CreateIsolate to complete or the debugger to be enabled before creating the ChromeProxyService
  • Get rid of the correctTab evals as they are no longer necessary
  • No longer return a RunResponse as the run state is now properly stored in the AppConnection

@@ -14,17 +15,19 @@ import '../../data/serializers.dart';
class AppConnection {
/// The initial connection request sent from the application in the browser.
final ConnectRequest request;

final _startCompleter = Completer();
final SseConnection _connection;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: startCompleter sounds like an action, which is a bit confusing. Maybe _startupCompleter, or _startedCompleter? Or even just '_startup', as it's private in a pretty narrow scope, and Dart style avoids reiterating types in variable names. if (_startup.isCompleted) reads pretty well. And a comment wouldn't hurt.

@@ -42,15 +43,20 @@ class ChromeProxyService implements VmServiceInterface {
/// are dynamic and roughly map to chrome tabs.
final VM _vm;

// TODO(flutter/devtools/issues/1207) - Remove.
final _vmReadyCompleter = Completer();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completer of bool? void?

uri,
instanceHelper,
);

unawaited(appConnection.onStart.then((_) async {
unawaited((await _debugger).resumeFromStart());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit]: this can actually await

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants