argent-react-native-profiler
БесплатноБез исполняемых скриптовНе проверенProfile a React Native Hermes app for JS re-renders and CPU hotspots via Argent profiler tools. Use when measuring before/after performance, diagnosing…
от software-mansion★ 3 279 звёзд на GitHubОб этом скилле
This skill is complementary to argent-react-native-optimization, not a replacement for it.
Physical iPhone: not supported; react-profiler-* reject kind: "device". Profile on a simulator.
Mac profiling supports react-native-macos 0.76 or later and React Native built for Mac Catalyst.
Start Metro, then use argent-macos-app-interact to launch a Debug build with Hermes. In
react-profiler-start, pass id from the app's list-devices entry as device_id. Use the same ID
and Metro port throughout the session.
If Metro cannot find the runtime, make sure the app is running, wait for its bundle to load, and
check the port (8081 by default). Retry with the same app ID, even if Metro lists other devices.
If the retry fails, report the error.
1. Tools
React Profiler (Hermes / React commits)
react-profiler-start/react-profiler-stop: record CPU samples and React commits around an interaction.react-profiler-analyze: turn the recording into a ranked report: hot commits with the JS functions that ran during each, and the file and line of each ranked component it finds in the project.react-profiler-status: only after an interruption (debugger drop, Metro reload, pause, subagent handoff, any doubt), never otherwise. After a debugger drop, react-profiler-stop can no longer collect the run; check status before stopping or restarting.react-profiler-fiber-tree: live component hierarchy, no session needed, for tracing a component's ancestry.
Drill-down queries (after analyze)
profiler-cpu-query: JS CPU: top functions, a time window, a function's call tree, CPU during a component's commits.profiler-commit-query: React commits by component, time range, commit index, or cascade tree, and render counts over all commits.profiler-stack-query: native data: hang stacks, function callers, thread breakdown, leak details.profiler-combined-report: correlates native hangs with React commits when both profilers ran.profiler-load: reload an earlier session from disk for the query tools.
For native profiling on its own, see the argent-native-profiler skill.
2. Guidelines
- Start
react-profiler-startandnative-profiler-starttogether, asreact-profiler-startdescribes. If the user wants only native profiling, followargent-native-profiler. - Never move on silently after a report. The report is the starting point: ask the user whether to investigate further with the query tools, implement fixes and re-profile, or stop.
- Record the interaction as an e2e test (
argent-create-e2eskill) before the first run when profiling needs a specific interaction sequence (scroll a list, navigate screens, trigger an animation), then replay it for every later run. This removes interaction variance from before/after comparisons. It matters most when re-profiling after a fix, comparing several sessions, or when the path is more than 2-3 steps.
3. Workflow
Complete all steps in order; do not break mid-flow.
Step 1: Start profiling
Before starting, define lightweight success criteria with the user: which metric matters most (e.g. totalRenderMs, a specific commit's duration, a component's render count) and what change would be meaningful.
Start the profilers as described in §2. Save startedAtEpochMs from the response for annotations. Every later profiler and query call in this session must use the same device_id. Then:
- If the user asked you to profile, drive the interaction yourself (
argent-device-interactskill). - If the user wants to interact themselves, suggest what to do (e.g. "scroll the list", "switch tabs") and wait for their reply.
While a profiler records, interaction tools return no automatic screenshot or element tree, so the capture does not load the app. Call screenshot or describe when you need to see the screen; interaction tools still wait for the screen to settle before they return, so add no wait of your own; on an Android emulator each screenshot during a profile takes one frame in about 100 ms and does not wake the screen capture; on a physical Android device it takes about 150–200 ms and briefly wakes the device screen capture, so take them sparingly there.
Annotate every interaction
After each gesture-tap or gesture-swipe, record an annotation with offsetMs = timestampMs - startedAtEpochMs, using the timestampMs the gesture returned. Never use Date.now(); only the server-side timestamps. Annotate every interaction, back-navigation swipes included, and pass them all to react-profiler-analyze in Step 3.
Step 2: Stop and collect
Call react-profiler-stop and native-profiler-stop in parallel (skip the native one only if you did not start it). If fiber_renders_captured is 0, warn the user that React commit data may be missing.
Step 3: Analyze
Call react-profiler-analyze with your annotations. Check the report's React Compiler and build-mode lines before proposing fixe
Установить argent-react-native-profiler в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл argent-react-native-profiler?
Profile a React Native Hermes app for JS re-renders and CPU hotspots via Argent profiler tools. Use when measuring before/after performance, diagnosing re-renders, or finding CPU hotspots.
Как установить скилл argent-react-native-profiler?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл argent-react-native-profiler запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic