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:

Summary

AI-assisted

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.

Close
?
You’ll combine the Arm MCP Server’s 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

AI-assisted

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.

Close
?
Which prompt file should I use to run the Code Hotspots recipe?
Use the 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.
What result should I expect after the profiling run completes?
Expect a flame graph and a hotspot summary that highlights the hottest functions in the Mandelbrot application. Use these outputs to guide which code changes to apply first.
Should I compile the Mandelbrot example with optimizations before profiling?
No. The single-threaded, unoptimized build is intentional so the hotspot analysis produces a clear signal. The agent later proposes enabling -O3 as part of the optimization pass.
How do I know the agent is targeting the correct machine?
The agent explicitly confirms your remote target details before running the Code Hotspots recipe. Review this confirmation and proceed only if it matches your intended Arm target.
What should I check if the Code Hotspots run fails to start?
Confirm that Arm Performix is configured with your remote Arm target and that the MCP Server can reach it over SSH. Also verify that the Mandelbrot application builds on the target system.
Next