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

Abierto
#9,606 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
dart

Línea de trabajo

Comienza con el seguimiento existente del Performance Panel para las compilaciones de widgets, los layouts y los paints, y luego rastrea cómo llegan los eventos del motor de Flutter al ring buffer de Dart VM Service. El issue presenta dos alternativas con alcances muy diferentes, por lo que deben acordarse los criterios de finalización y un punto de entrada para la implementación antes de poder comenzar el trabajo.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Dart
Estrellas
1.7k
Forks
420
Merge medio
3 d 11 h
PR fusionados (30 d)
29

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de flutter/devtools

Todos los issues de flutter/devtools

Issues similares

Más issues de Dart

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.