Who it is forA developer who suspects a screen got slower or janky after a change and needs measured numbers before and after.
The problemPerformance regressions are hard to prove from memory, and manual profiling is slow to repeat.
The outcomeYou get recorded CPU, memory, and Display FPS data for an interaction, plus a comparison of two runs in chat.
What you need first
- Codex desktop on an Apple Silicon Mac
- Xcode 26 or later with a simulator runtime for iOS simulators
- Android SDK platform-tools and emulator, with an AVD or an authorized physical device, for Android
- GitHub read access and working Git authentication while the repository is private
- An existing local Metro server for Metro logs and React Native inspection
Steps
- Open Performance in Mobile Dev for the selected device.
- Ask Codex to record CPU and memory during the interaction, for example scrolling a list for 30 seconds.
- Repeat the same interaction after your change.
- Ask Codex to compare the two recordings and analyze the selected range.
Prompt for your agent
Using the callstackincubator/codex-mobile-dev-plugin Mobile Dev plugin, record CPU and memory on <device name> during <interaction> before and after my change in <project path>, then compare the two runs. Expected output: a comparison of CPU, memory, and Display FPS between the runs. Verify both recordings cover the same interaction length before drawing a conclusion.
Caveat. Physical iOS CPU and memory need iOS 17.4 or later with a development-signed app, and iOS simulators do not support Display FPS.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for callstackincubator/codex-mobile-dev-plugin and "Record CPU, memory, and FPS and compare two runs"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer