Communitygithub.com

软件大厦/argent-native-profiler

原生性能分析工具,适用于 CPU 热点、UI 卡顿和内存问题。iOS 通过 xctrace;Android 通过 Perfetto。用于诊断原生层面的性能问题。

argent-native-profiler 是什么?

该技能提供原生级别的性能分析能力,专注于诊断 CPU 热点、UI 卡顿和内存泄漏等底层问题。它支持 iOS 平台(使用 xctrace)和 Android 平台(使用 Perfetto),适用于需要深入分析原生代码性能瓶颈的场景。通过捕获详细的跟踪数据,开发者可以直观地识别性能瓶颈所在,从而优化应用性能和用户体验。它将 xctrace 和 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.

相关技能