# Diagnose and improve my mobile app's performance

A performance review of an iOS or Android app covering startup time, jank, memory, battery, network, and crashes, with tools and a fix plan.

- Topic: Software Development
- Framework: Few-Shot
- Level: Standard
- Tags: Coding, Write, Rewrite & Edit, Fill-in Template
- Source: https://www.thinkwithprompt.com/prompts/diagnose-and-improve-my-mobile-app-s-performance

## Prompt

```text
Help me find and fix performance problems in my mobile app.

**Platform and stack:** [iOS (Swift/SwiftUI) / Android (Kotlin/Compose) / React Native / Flutter]
**The problem:** [e.g. "slow cold start", "scrolling stutters on long lists", "app killed in background", "battery complaints"]
**Metrics or evidence I have:** [e.g. "Android vitals ANR rate 0.6%", "cold start 4s on mid-range devices", crash reports, user reviews]
**Devices affected:** [e.g. "older Android phones", "all iPhones"]
**Relevant code or traces:** [PASTE code, profiler output, or logs]

Give me:
1. The key metrics for my problem and reasonable targets: cold and warm start time, frame rendering (dropped or slow frames), ANR rate, crash-free sessions, memory use, app size, network payload, and battery impact.
2. The tools to measure each on my platform (e.g. Xcode Instruments, MetricKit, Android Studio Profiler, Macrobenchmark, Perfetto, Firebase Performance, Flutter DevTools), and how to capture a useful trace.
3. Likely causes ranked by probability given my evidence, such as work on the main thread, heavy startup initialization, unoptimized images, over-rendering lists, memory leaks, chatty network calls, or bridge overhead in cross-platform apps.
4. If I shared code or traces: specific issues and the fix for each, with code changes.
5. A test plan: which devices and network conditions to test on, and how to check the fix worked without regressions.
6. Ongoing monitoring: what to track in production and alert thresholds.

Don't guess at numbers from my traces; if something is unclear, tell me what to measure next.
```

## What to fill in

- e.g. "older Android phones", "all iPhones"
- PASTE code, profiler output, or logs

Free to copy and use. From ThinkWithPrompt (https://www.thinkwithprompt.com/), a library of 2,663 curated AI prompts.
