Identify and optimize code hotspots using Arm Performix through the Arm MCP Server
Introduction
Understand AI-driven profiling with Arm Performix MCP tool
Build the Mandelbrot example on Arm Neoverse
Run Code Hotspots with an AI agent
Optimize code with AI-driven profiling feedback
Next Steps
Identify and optimize code hotspots using Arm Performix through the Arm MCP Server
Who is this for?
This is an advanced topic for developers who want to use AI-powered tools to automate performance profiling and optimization of C++ applications on Arm Neoverse servers.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Describe how the Arm Performix tool in the Arm MCP Server enables AI-driven profiling workflows
- Configure a GitHub Copilot prompt file to run the Code Hotspots recipe on a remote Arm target
- Use an AI agent to interpret flame graph results and identify the hottest functions in a C++ application
- Apply AI-suggested optimizations to reduce application runtime on Arm Neoverse
Prerequisites
Before starting, you will need the following:
- Completion of the Automate x86-to-Arm application migration using Arm MCP Server Learning Path, or equivalent familiarity with configuring the Arm MCP Server in an AI coding assistant
- Access to an Arm-based cloud instance running Linux, such as an AWS Graviton3 instance
- Access to Arm Performix configured with the remote Arm target. See the Arm Performix install guide for setup instructions
- Basic understanding of C++
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
apx_recipe_run tool with an AI agent to run the complete Code Hotspots workflow on an Arm Neoverse target. First, you’ll build an intentionally unoptimized Mandelbrot C++ application on a remote Arm Linux target, then use a GitHub Copilot prompt file to run the Performix Code Hotspots recipe. The agent confirms target details, executes collection, and returns a flame graph with structured hotspot data to pinpoint the hottest functions. Guided by the agent, you’ll apply concrete code changes, such as math simplifications and enabling a higher optimization level, directly on the server over SSH. Then, you’ll re-run the recipe to compare results. The end-to-end flow keeps profiling, interpretation, and edits within a single AI-assisted loop.Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
arm-hotspots-optimization prompt file from the Arm MCP Server repository with GitHub Copilot. It directs the agent to confirm the remote target, run the recipe, and return structured profiling results.-O3 as part of the optimization pass.