tracing-recompositions-at-runtime
CommunityRuntime recomposition tracing with logs
System Documentation
What problem does it solve?
This skill helps diagnose recompositions in Jetpack Compose by instrumenting composables with @TraceRecomposition from skydoves/compose-stability-analyzer and emitting per-recomposition details to logcat under the Recomposition tag. It supports release-with-debug-symbols builds and feeds a live recomposition heatmap in Android Studio.
Core Features & Use Cases
- Instrumentation: annotate composables with @TraceRecomposition to collect per-recomposition diffs, including parameter state changes.
- Runtime gating: gate instrumentation via ComposeStabilityAnalyzer.setEnabled(BuildConfig.DEBUG) or an explicit feature flag to avoid production overhead.
- Debug visuals: integrate with Layout Inspector heatmaps and logcat to locate hot recompositions and verify fixes in release-like builds.
Quick Start
Annotate a suspect composable with @TraceRecomposition and enable the runtime gate (ComposeStabilityAnalyzer.setEnabled(BuildConfig.DEBUG)) in your Application to start emitting per-recomposition diffs to logcat during a debug or release-with-debug-symbols session.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tracing-recompositions-at-runtime Download link: https://github.com/skydoves/compose-performance-skills/archive/main.zip#tracing-recompositions-at-runtime Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.