devtools
devtools copied to clipboard
Add functionality to track metrics about what is being repainted in a frame
This stems from flutter.dev/go/drm-embedder
Question: "Would it be worth exploring a debugger mode that stores metrics about the average area being repainted or prints a history of the area repainted per frame?"
comment from @jacob314: "This would make sense to integrate with Flutter DevTools. Probably both aggregate metrics and metrics for each frame."What was the dirty rect for this frame that was slow?" Why are the dirty rects so large when very little is changing?"
I suspect this would also massively reduce the cost for rendering screenshots for all cases but full page transitions. Likely the dirty region API is a big part of why screen mirroring on android is generally fast enough.