Hey All, Jetpack Compose has three primary phases ...
# compose
a
Hey All, Jetpack Compose has three primary phases during UI rendering: 1. Recomposition 2. Layout 3. Draw While using Layout Inspector, I can only see the recomposition count for a composable. However, I want to go deeper and track how many times each phase — recomposition, layout, and draw — is triggered for a given composable and why. The Android Studio debugger also doesn’t seem to provide much insight into the layout or draw phases. How can I track recomposition, layout, and draw counts for a composable?
r
On the device, in developer settings, you can enable a debug visualization of draws/redraws
s
Also, I usually use the Profiler, specifically Perfetto System Traces, to visualize and analyze the drawing and layout phases of Compose. To see the full information, you need to add the AndroidX Tracing Library to your project.
☝️ 1
☝🏾 1
a
Thanks let me try. 🙂