java-performance-audit
Installation
SKILL.md
Java Android Runtime Performance Audit
Instructions
Performance work is measurement-first. Do not optimize without a trace.
1. Establish a Baseline
Measure these before changing any code:
- Startup time —
adb shell am start -W ...→TotalTime,WaitTime. - Frame rate — Profiler → CPU → System Trace, or Macrobenchmark library.
- Memory — Profiler → Memory → record allocations.
- Network — Profiler → Network timeline.
Save traces in docs/perf/ with a date; every future change compares against the baseline.
2. StrictMode — catch main-thread IO immediately
Enable StrictMode in debug builds only: