[FR] Make it easier to identify performance bottlenecks in app

Aberta
#9,606 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Precisa de esclarecimento
Status de atividade
Pouca atividade
Stack de tecnologia
dart
Domínio
performance, tooling

Direção de pesquisa

Comece pelo rastreamento existente do Performance Panel para builds de widgets, layouts e paints e, em seguida, rastreie como os eventos do mecanismo Flutter chegam ao ring buffer do Dart VM Service. A issue apresenta duas alternativas com escopos muito diferentes, portanto os critérios de conclusão e um ponto de entrada para a implementação precisam ser acordados antes que o trabalho possa começar.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

cost: high new feature P3 screen: performance
Description

A user is requesting a way to easily find the widget/s responsible for performance issues in their app.

The Performance Panel currently supports tracking widget builds, layouts, and paints to help users diagnose where their app is experiencing bottlenecks.

However, if the app has high frame rates, they can experience data loss in DevTools because the perf events overflow the ring buffer before they can analyze them.

Possible solutions

1. Table of slowest widget builds, layouts, or paints.

Along with displaying the data in the flame chart, we could also sort the data and display the slowest phases at the top of a table to help users quickly identify where their app is experiencing issues.

Estimated scope: S/M (1 week - 1 month)

2. Disabling widgets from the performance view

The user suggested a possible solution of disabling widgets from the performance view. This is a significantly more challenging request. Currently, the Flutter engine is responsible for emitting the build, layout, and paint events. The Dart VM Service listens to these events, and adds them to a ring buffer. The primary challenge here is communicating with the Flutter engine to not emit the events for certain widgets, either with a service extension registered on the framework, or perhaps an annotation that users can add to their widget source code.

Estimated scope: XL (quarter+)


See original request here

Linguagem predominante
Dart
Estrelas
1.7k
Forks
420
Merge médio
3d 11h
PRs com merge (30d)
29

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de flutter/devtools

Todas as issues de flutter/devtools

Issues semelhantes

Mais issues de Dart

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.