Fixed
Status Update
Comments
we...@gmail.com <we...@gmail.com> #2
If you normally develop with Compose, naturally the Composable function will deepen the hierarchy. So, to fix the recompose problem, using the Layout Inspector, the hierarchy is initially closed. Even if you run the emulator in this state and turn on the setting to display the number of recomposes, the number will not be displayed. It will be displayed only after opening the hierarchy one by one. With this specification, if the hierarchy is complex and deep, you may forget to open some of the hierarchies. This can lead to places where you don't know how many times to recompose, resulting in missed opportunities to fix flaws in your program. Therefore, it would be very helpful if you could set the specification to display the number of recomposes even above the hidden hierarchy when Layout Inspecter is started.
jl...@google.com <jl...@google.com>
jl...@google.com <jl...@google.com> #3
Hi
One possibility is showing recomposition counts as:
- "1 (90)" where 1 is the number of recompositions of the current node, and 90 is the max number of recompositions by any of its children.
- "1" is the number of recompositions of the current node, and since no children have recomposed we don't show the parenthesis.
Another possibility: a 3rd column ?
jl...@google.com <jl...@google.com> #4
Made a 3rd column (this was the easiest approach).
It will be available in canary.
an...@google.com <an...@google.com> #5
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Koala Feature Drop | 2024.1.2 Canary 4
- Android Gradle Plugin 8.6.0-alpha04
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
an...@google.com <an...@google.com> #6
The fixes for this issue are now also available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 6
- Android Gradle Plugin 8.8.0-alpha06
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
This user's comment sums it up pretty nicely:https://twitter.com/webnakama/status/1643254547442462721
Essentially:
Probably we should have two counts displayed: (1) the number of times the particular widget recomposed (2) the number of recompositions which occurred within the children of a widget. This will allow users to notice and expand the parent nodes when they see large numbers.