Skip to content

Conversation

@polina-c
Copy link
Contributor

@polina-c polina-c commented Dec 4, 2022

See UX in description of dart-lang/leak_tracker#20

@polina-c polina-c changed the title Integrate leak_tracker. Integrate leak_tracker (draft). Dec 5, 2022
@polina-c polina-c changed the title Integrate leak_tracker (draft). Integrate leak_tracker. Dec 6, 2022
@polina-c polina-c requested a review from CoderDake December 6, 2022 22:27
@polina-c polina-c marked this pull request as ready for review December 6, 2022 22:31
@polina-c polina-c requested review from a team and bkonyi as code owners December 6, 2022 22:31
final message = EventFromApp.fromVmServiceEvent(vmServiceEvent)?.message;
if (message == null) return;

if (message is LeakTrackingStarted) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: maybe change this to use a switch statement instead?

if (message == null) return;
switch(message.runtimeType) {
  case LeakTrackingStarted:
    ...
  case LeakSummary:
    ...
  default:
    throw StateError('...');
}

Copy link
Contributor Author

@polina-c polina-c Dec 7, 2022

Choose a reason for hiding this comment

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

Will do this as patterns get released. For now there is no type promotion for 'runtimeType':

Screenshot 2022-12-07 at 9 51 25 AM

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah good point. Waiting for patterns SGTM.

@polina-c polina-c merged commit a0d845f into flutter:master Dec 7, 2022
@polina-c polina-c deleted the leaks-2 branch December 7, 2022 22:58
CoderDake pushed a commit that referenced this pull request Dec 9, 2022
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