argent-native-profiler
Diagnose native CPU hotspots, UI hangs, memory issues, and iOS app launch time. Use Instruments (xctrace) on iOS simulators, iPhones (launch time only) and Mac apps, or Perfetto on Android
Install / Use
npx skills add software-mansion/argent --skill argent-native-profilerInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of argent-native-profiler
argent-native-profiler scores 84/100 on our quality scale, 2777th of 4,722 Development & Engineering skills we index.
Its SKILL.md is 7.5 KB long, split into 5 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 3,226 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 4 days ago, so argent-native-profiler is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-27. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
argent-native-profiler compared with similar skills
All 4 of these similar skills score higher than argent-native-profiler; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| argent-native-profiler (this skill)by software-mansion | 84 | 3.2k | 4d ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 122.3k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 91.5k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 73.7k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 47.6k | 7d ago | CLAUDE.md |
Frequently asked questions
- How do I install argent-native-profiler?
- Run
npx skills add software-mansion/argent --skill argent-native-profiler. The install tabs above show the steps for each supported agent. - Which AI agents does argent-native-profiler work with?
- It is written for Zed, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is argent-native-profiler safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is argent-native-profiler still maintained?
- The repository was last updated 4 days ago, so argent-native-profiler is actively maintained.
Skill content
View source on GitHubname: argent-native-profiler description: Diagnose native CPU hotspots, UI hangs, memory issues, and iOS app launch time. Use Instruments (xctrace) on iOS simulators, iPhones (launch time only) and Mac apps, or Perfetto on Android. Use when diagnosing native-level performance issues.
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): the profiling session (native-profiler-start) runs on a simulator only; native-profiler-launch-analysis (§4) also runs on a physical iPhone. 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.
For Mac apps (platform: "macos"), use Instruments with full Xcode. If start returns NATIVE_PROFILER_APP_NOT_DEBUGGABLE, use a development-signed build. In a background session such as SSH, template_path: "Time Profiler" also works for CPU and hangs on a signed build without the debugging entitlement. Do not sign files or add entitlements.
If native-profiler-start returns NATIVE_PROFILER_APP_HAS_WEBKIT_HEAP or NATIVE_PROFILER_APP_HEAP_CHECK_FAILED on a Mac app, choose the retry based on what you need to measure.
- For CPU and hangs, use
template_path: "Time Profiler"to keep the app running in its current state. - For leaks, use the bundled template with
malloc_stack_logging: true, even for allocations made during the recording. Save any state you need before retrying because this restarts the app.
While logging is off, avoid Leaks, Allocations, and other templates that use the Allocations instrument on these apps. They can freeze the app.
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.
- Start. Launch the app through Argent if needed, then call
native-profiler-start. On iOS and Android, useapp_processif auto-detection is ambiguous or selects the wrong app. On a Mac, the device ID identifies the app. Then let the user interact, or followargent-device-interacton mobile andargent-macos-app-interacton Mac. During recording, usescreenshotordescribewhen needed because interaction tools omit the automatic screenshot and tree. Actions still wait for the screen to settle. On Android emulators, screenshots capture one frame in about 100 ms. On physical Android devices, they briefly wake screen capture and take about 150–200 ms, so use them sparingly. - Stop. Keep the app running through
native-profiler-stop. For Instruments, readwarningandexportDiagnosticsbefore interpreting the report. If the app ended, Instruments stalled, or exports were skipped, repeat the recording when you need the missing data. - Analyze.
native-profiler-analyze. Findings are 🔴 RED (act on it) or 🟡 YELLOW (worth investigating, may be acceptable). - Present and ask. Summarize the key findings, then ask the user whether to investigate further, implement fixes, or stop. Do not move on silently.
- Drill down with
profiler-stack-query(patterns below). - Fix and re-profile the same scenario; compare with the earlier session via
profiler-load(list, thenload_nativewith itssession_idand thedevice_id). Report honestly whether the target metric improved, regressed, or stayed flat; if there is no net benefit or something else regressed, say so and reconsider. For reproducible before/after runs, record the interaction as an e2e test (argent-create-e2eskill) before the first run and replay it withe2e-execute.
Investigation patterns
- Hang → mode
hang_stacksfor the native call chain →function_callersfor the suspected function → read the native source. If a Mac hang overlaps a leak-check pause, repeat the scenario withtemplate_path: "Time Profiler"to measure the hang without leak checks. - CPU hotspot →
thread_breakdownfor the per-thread split →function_callersfor the dominant function. - Memory leak (iOS simulator or Mac app). Keep recording about 25 seconds after the suspected leak so Instruments has time to finish a check. If the report warns that the capture was too short, repeat the recording before drawing conclusions about leaks. Use
leak_stackswithobject_typeto find allocation stacks. For missing stacks such as<Call stack limit reached>, save any needed app state and usemalloc_stack_logging: trueon a separate leak pass. On Mac, reserve it for allocations that predate recording and userestart-appto clear the overhead before measuring CPU or hangs.
3. Caveats
- Simulator and emulator timings reflect the host machine, not device hardware. Compare runs against each other rather than trusting absolute numbers; a physical Android device gives real-hardware numbers.
- Profiler overhead: if
JSLexer,JSONEmitteror Hermes internals dominate the JS thread, that is instrumentation cost, not app work. Discount those entries. - Run-to-run variance: treat only consistent, directional changes (across 2+ runs, or a >15% delta) as signal.
- Live data: if the app fetches live API data, different responses change the workload independently of code changes. Note when data-dependent screens vary.
4. App Launch (iOS)
For any iOS app (Swift, Objective-C, React Native, Flutter) when the user asks about launch or startup time.
- Build a Release build and install it yourself with the project's own scripts or build setup (for React Native, find them as
argent-react-native-app-workflowdescribes); the tool only measures an installed build. Debug-build timings are not meaningful. - Target a physical iPhone on USB. Ask the user before you use a booted simulator: its timings reflect the Mac hardware.
- Run
native-profiler-launch-analysis:mode: "measure"for the baseline and to verify fixes,mode: "profile"to find the cause of a slow launch. On an iPhone,measureruns on Argent's on-device runner (seeargent-ios-device-setup);profiledoes not need it. If the runner cannot be signed, tell the user how to fix it. A profile still shows the cause, but it does not replace the five-launch baseline. - For a profile, run
profiler-stack-querythread_breakdownon the main thread, thenfunction_callersfor the dominant function. Typical causes: static initializers, dylib loading, heavydidFinishLaunchingwork. - Rebuild and reinstall the Release build after each native or JS change, before you measure again.
native-profiler-launch-analysis ends at the first frame. Framework work before it (e.g. React Native runtime creation) appears in the launch profile. Work after it (e.g. a JS bundle, startup data loading, the first screen's render) is not in the result, and the first frame is often only a splash screen. For the time until the app is usable, investigate that work separately; for React Native, see Startup time in argent-react-native-optimization.
Related Skills
taste-skill
122.3kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
hyperframes
91.5kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ai-job-search
73.7kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
47.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
