flutter / flutter/devtools

Show a dominator tree in the memory page to display which objects are holding on to each other

Open
#2,688 0 comments 0 reactions 0 assignees View on GitHub
P3 screen: memory
Dominant language
Dart
Stars
1.7k
Forks
404
Avg merge
6d 17h
Merged PRs (30d)
18

Description

Some helpful links for dominator trees, all related to the Devtools app size tool:
- PR to add dominator tree and call graph to app size page: https://github.com/flutter/devtools/pull/2300
- SDK change to add generateCallGraphWithDominators method to package:vm_snapshot_analysis https://dart-review.googlesource.com/c/sdk/+/160342
- PR to add dominator tree and call graph for app size diffs: https://github.com/flutter/devtools/pull/2344
- public docs on using dominator tree and call graph in app size page: https://flutter.dev/docs/development/tools/devtools/app-size#dominator-tree-and-call-graph

Contributor guide

Open the contributing guide

Research direction

Start with the linked DevTools pull requests for dominator trees and call graphs, then review the vm_snapshot_analysis SDK change adding generateCallGraphWithDominators. Trace how that data is presented in the app-size page and adapt the approach for the memory page; done means the memory page displays which objects retain others as a dominator tree.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
devtools, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.