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
Review 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.
Follow the
Generate Arm Performix AI insights in Visual Studio Code with Codex
Learning Path to start the installed
apx executable with the mcp start arguments and verify that your AI coding assistant can list Performix recipes and configured targets.Expect a completed run status and a run ID. Use that run ID to request an AI insight with a hotspot summary that highlights the hottest functions in the Mandelbrot application. Use this output to guide which code changes to apply first.
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.The agent explicitly confirms your configured Performix target name and workload before running the Code Hotspots recipe. Review this confirmation and proceed only if it matches your intended Arm target.
Confirm that Arm Performix is configured with your remote Arm target and that the target connection succeeds. Also verify that the Mandelbrot application builds on the target system. You can test the connection with
apx target test --target <target-name>.