Community编程与开发github.com

software-mansion/argent-react-native-profiler

使用 argent 分析工具对 React Native Hermes 应用进行性能剖析,测量重渲染和 CPU 性能。适用于性能优化、修复前后测量、发现缓慢组件、诊断重渲染、检查 CPU 热点或生成排序问题报告。

argent-react-native-profiler 是什么?

该技能基于 Software Mansion 的 argent 分析工具,专为 React Native Hermes 应用提供详细的性能剖析能力。它能够测量组件重渲染次数和 CPU 使用情况,帮助开发者快速识别性能瓶颈、定位慢速组件、诊断不必要的重渲染以及检测 CPU 热点。支持在性能优化前后进行对比测量,并生成按严重程度排序的问题报告。该技能主要适用于 React Native 项目,依赖于 Hermes 引擎的运行时数据采集,无需修改应用代码即可集成。通过分析 profiler 生成的 trace 文件,开发者可以直观地查看各组件渲染耗时和 CPU 资源占用,从而制定有针对性的优化策略。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/software-mansion/argent/tree/main/skills/argent-react-native-profiler

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

argent-react-native-profiler 是做什么的?

使用 argent 分析工具对 React Native Hermes 应用进行性能剖析,测量重渲染和 CPU 性能。适用于性能优化、修复前后测量、发现缓慢组件、诊断重渲染、检查 CPU 热点或生成排序问题报告。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

software-mansion/argent-android-emulator-setup

Set up and connect to an Android emulator using argent MCP tools. Use when starting a new session on Android, booting an emulator, getting a device serial, or before any UI interaction task.

software-mansion/argent-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 device actions.

software-mansion/argent-device-interact

Interact with an iOS simulator, Android emulator, or Electron app using argent MCP tools. Use when tapping UI elements, performing gestures, scrolling/swiping, typing text, pressing hardware buttons, launching apps, opening URLs, taking screenshots, or checking visible app state after interactions.

software-mansion/argent-ios-simulator-setup

Set up and connect to an iOS simulator using argent MCP tools. Use when starting a new session, booting an iOS simulator, getting an iOS UDID, or before any iOS simulator interaction task.

software-mansion/argent-metro-debugger

Debug a JS runtime via CDP using argent debugger tools. Primary path is React Native via Metro (iOS / Android); a subset of the tools (debugger-connect, debugger-status, debugger-evaluate, debugger-log-registry) also drive a Chromium (CDP) app's renderer (an Electron app, or any Chromium browser exposing CDP) through the same surface. Use when connecting to the runtime, inspecting React components, reading console logs, or evaluating JavaScript.

software-mansion/argent-native-profiler

Native profiling for CPU hotspots, UI hangs, memory issues. iOS via xctrace; Android via Perfetto. Use when diagnosing native-level performance issues.

software-mansion/argent-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.

software-mansion/argent-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.

software-mansion/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 UI flows, verifying login works, testing navigation, running end-to-end UI test scenarios, manual QA steps, visible UI changes, or visual behavior.

相关技能