Communitygithub.com

software-mansion/argent-native-profiler

原生層級的效能分析工具,用於診斷 CPU 熱點、UI 卡頓與記憶體問題。iOS 透過 xctrace,Android 透過 Perfetto 進行分析。

argent-native-profiler 是什麼?

這個技能提供對 iOS 和 Android 應用程式的原生層級效能分析功能。它能協助開發者診斷 CPU 熱點、UI 卡頓以及記憶體相關問題。在 iOS 上,它利用 xctrace 工具進行分析;在 Android 上,則使用 Perfetto 進行追蹤。此技能主要用於當一般的高階效能工具無法找出問題,需要深入原生程式碼層級進行診斷時。支援的平台包括 iOS 和 Android,使用者需要在其開發環境中安裝對應的命令列工具(如 xcode-select 和 perfetto 工具)。透過執行特定的命令,它可以生成詳細的追蹤報告,幫助開發者定位效能瓶頸。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

argent-native-profiler 是做什麼的?

原生層級的效能分析工具,用於診斷 CPU 熱點、UI 卡頓與記憶體問題。iOS 透過 xctrace,Android 透過 Perfetto 進行分析。當需要診斷原生層級的效能問題時使用。

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-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-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.

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.

相關技能