devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Add functionality to track metrics about what is being repainted in a frame

Open kenzieschmoll opened this issue 3 years ago • 1 comments

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?"

kenzieschmoll avatar Jul 29 '22 22:07 kenzieschmoll

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.

jacob314 avatar Aug 01 '22 17:08 jacob314