software-mansion/argent-react-native-profiler

Profilez une application React Native Hermes pour mesurer les performances de rendu et CPU à l'aide des outils de profilage argent. Utilisez-le pour optimiser les performances, mesurer avant/après une correction, repérer les composants lents, diagnostiquer les re-rendus, vérifier les points chauds CPU ou produire un rapport classé des problèmes.

Qu'est-ce que argent-react-native-profiler ?

Cette compétence permet de profiler une application React Native utilisant le moteur JavaScript Hermes, en se concentrant sur les performances de rendu (re-renders) et CPU. Elle s'appuie sur les outils de profilage argent de Software Mansion, offrant une analyse détaillée des composants lents, des re-rendus inutiles et des goulots d'étranglement CPU. Idéale pour les développeurs souhaitant optimiser les performances avant/après une modification, elle génère des rapports classés par sévérité, facilitant l'identification des correctifs prioritaires. Compatible avec les applications React Native utilisant Hermes, elle fonctionne via des commandes en ligne de commande et produit des résultats exploitables pour améliorer la réactivité et l'efficacité de l'application.

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

Installed? Explore more Développement et programmation skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait argent-react-native-profiler ?

Profilez une application React Native Hermes pour mesurer les performances de rendu et CPU à l'aide des outils de profilage argent. Utilisez-le pour optimiser les performances, mesurer avant/après une correction, repérer les composants lents, diagnostiquer les re-rendus, vérifier les points chauds CPU ou produire un rapport classé des problèmes.

Pourquoi utiliser ce skill ?

  • Mesure précise des performances de rendu et CPU
  • Identification rapide des composants problématiques
  • Rapports exploitables avec classement par sévérité
  • Compatibilité avec React Native et Hermes

Prérequis

  • Une application React Native utilisant Hermes
  • Node.js et npm/yarn installés
  • Les outils argent-react-native-profiler installés via npm

Utilisation

  1. Installation :
    npm install @argent/react-native-profiler
    
  2. Profilage :
    npx argent-react-native-profiler --app <chemin-vers-apk>
    
  3. Analyse : Consultez le rapport généré dans le dossier argent-reports.

Exemple de sortie

Rapport de performance - application.apk
----------------------------------------
Composants lents :
  - MonComposant (24 re-rendus, 320 ms)
  - UnAutreComposant (12 re-rendus, 150 ms)
Points chauds CPU :
  - fonctionTraitement (45 % CPU)
  - renduListe (30 % CPU)

Liens utiles

Licence

MIT

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.

Skills associés