software-mansion avatar

Argent Native Profiler

When your React Native app stutters or leaks on the native side, this skill grabs xctrace profiles on iOS or Perfetto traces on Android and breaks them down into CPU hotspots, UI hangs, and memory leaks. It auto-detects your running app, records while you interact, then parses the trace into a severity-ranked report you can drill into with stack queries. The workflow is end-to-end: start, stop, analyze, then query specific hang stacks or leak callchains. One thing to watch: iOS simulator leaks often come back unattributed because xctrace attaches without malloc stack logging, so you'll need to cold-launch with that flag enabled if you want real allocation backtraces.

skills.sh installs
29.9K
GitHub stars
3.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add software-mansion/argent --skill argent-native-profiler --agent claude-code

Installs into .claude/skills of the current project.

Files

1. Tools and platforms

  • native-profiler-start → native-profiler-stop → native-profiler-analyze: record, export, and report.
  • profiler-stack-query: drill into the analyzed data (hang stacks, function callers, thread breakdown, leaks).
  • profiler-load: reload an earlier session from disk.

iOS (Instruments via xctrace): simulator only; a physical iPhone is not supported. Needs full Xcode (xcrun xctrace version). Reports CPU hotspots, UI hangs and memory leaks.

Android (Perfetto): emulator or physical device. Reports CPU hotspots and UI hangs (with jank reasons and the main thread's blocking function), plus an RSS-growth signal for memory pressure: treat it as a hint to confirm, not a confirmed leak. The app must be debuggable or declare <profileable android:shell="true"/> in its manifest, or no perf_sample callstacks are captured.

argent-react-native-profiler starts native profiling alongside React profiling by default; this skill's workflow and investigation patterns apply in both cases.

2. Workflow

Complete all steps in order; do not break mid-flow.

Sponsors

Details

Repository
github.com/software-mansion/argent
Categories
Debugging, Mobile Development
First seen
Jul 14, 2026

More from software-mansion/argent

All 14

Recommended

More Debugging
1warpdotdev avatardiagnose-ci-failureswarpdotdev/common-skillsDiagnose CI failures for a PR using the GitHub CLI, extract error logs, and generate a plan to fix them. Use when the user asks to check CI status, pull CI issu28.6Kskills.sh installs
2vuejs-ai avatarvue-debug-guidesvuejs-ai/skillsVue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues. Use when diagnosing or fixing Vue issues.27.9Kskills.sh installs
3wshobson avatardebugging-strategieswshobson/agentsMaster systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use whe13.9Kskills.sh installs
4dimillian avatarswiftui-performance-auditdimillian/skillsAudit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory u10.4Kskills.sh installs
5anthropics avatardebuganthropics/knowledge-work-pluginsStructured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "somet6Kskills.sh installs
6jeffallan avatardebugging-wizardjeffallan/claude-skillsParses error messages, traces execution flow through stack traces, correlates log entries to identify failure points, and applies systematic hypothesis-driven m5.4Kskills.sh installs