argent-ios-profiler
1. Tool Overview
| Tool | Purpose |
|---|---|
ios-profiler-start |
Start xctrace recording on a booted simulator or device. Captures CPU, hangs, and leaks. Optional: app_process, template_path. |
ios-profiler-stop |
Stop xctrace, export trace data to XML files (timestamped, persist on disk). |
ios-profiler-analyze |
Parse exported XML and return structured bottleneck payload (CPU hotspots, UI hangs, leaks). |
profiler-stack-query |
Drill into parsed data: hang stacks, function callers, thread breakdown, leak details. |
profiler-load |
List and reload previous trace sessions from disk for re-investigation. |
2. Investigation Patterns
After ios-profiler-analyze surfaces findings, use profiler-stack-query to drill into root causes:
- Hang detected →
profiler-stack-querymode=hang_stacksfor full native call chains → mode=function_callersfor the suspected function → read native source. - CPU hotspot →
profiler-stack-querymode=thread_breakdownfor per-thread distribution → mode=function_callersfor the dominant function. - Memory leak →
profiler-stack-querymode=leak_stacksfiltered byobject_typefor responsible frames and libraries.
More from software-mansion/argent
argent-test-ui-flow
Autonomously test an app UI (iOS or Android) by running interact-screenshot-verify loops using argent MCP tools. Use when testing a UI flow, verifying login works, testing navigation, or running an end-to-end UI test scenario.
9argent-create-flow
Record a reusable flow (scripted sequence of MCP tool calls) that can be replayed later with a single command. Use when the user asks to create, record, or build a flow, or to script a sequence of simulator actions.
9argent-metro-debugger
Debug a React Native app via Metro CDP using argent debugger tools. Use when connecting to Metro, inspecting React components, reading console logs, or evaluating JavaScript in the app runtime.
9argent-react-native-app-workflow
Step-by-step workflows for developing or debugging React Native apps on iOS simulator or Android emulator. Use when starting the app, debugging Metro, fixing builds, diagnosing runtime errors, or running tests.
9argent-react-native-profiler
Profile a React Native Hermes app to measure re-render and CPU performance using argent profiler tools. Use when optimizing for performance, measuring before/after a fix, spotting slow components, diagnosing re-renders, checking CPU hotspots, or producing a ranked issue report.
9argent-react-native-optimization
Optimizes a React Native app by profiling first to find real bottlenecks, then sweeping for mechanical issues. Entry-point for all performance work. Use when the app feels slow, user asks to optimize, fix re-renders, reduce jank, or improve startup. Delegates to argent-react-native-profiler for measurement.
8