Optimize code hotspots with the Arm Performix MCP server
Introduction
Understand AI-driven profiling with the Arm Performix MCP server
Build the Mandelbrot example on Arm Neoverse
Run Code Hotspots with an AI agent
Optimize code with AI-driven profiling feedback
Next Steps
Optimize code hotspots with the Arm Performix 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?
After completing this Learning Path, you'll be able to perform the following tasks:
- Describe how the dedicated Arm Performix MCP server enables AI-driven profiling workflows
- Run the Code Hotspots recipe on a configured remote Arm target through an AI agent
- Use an AI agent to interpret profile evidence and identify the hottest functions in a C++ application
- Apply AI-suggested optimizations to reduce application runtime on Arm Neoverse
Prerequisites
Before starting, you'll need the following prerequisites:
- Completion of the Generate Arm Performix AI insights in Visual Studio Code with Codex Learning Path, or equivalent familiarity with configuring the Arm Performix 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.
You’ll combine the dedicated Arm Performix MCP server 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 an AI agent to run the Performix Code Hotspots recipe. The agent confirms the configured target, executes collection, and returns a run ID. You’ll use that run ID to generate AI insights 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, through your source and build environment. 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.