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

Ouverte
#9,606 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
Calme
Stack technique
dart
Domaine
performance, tooling

Piste de recherche

Commencez par le suivi existant du Performance Panel pour la construction des widgets, les layouts et les paints, puis retracez comment les événements du moteur Flutter atteignent le ring buffer de Dart VM Service. L’issue présente deux alternatives aux portées très différentes ; les critères d’achèvement et un point d’entrée pour l’implémentation doivent donc être convenus avant de pouvoir commencer le travail.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Dart
Étoiles
1.7k
Forks
420
Merge moyen
3 j 11 h
PR mergées (30 j)
29

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de flutter/devtools

Toutes les issues de flutter/devtools

Issues similaires

Plus d'issues Dart

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.