You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/performix-agentic-dynamic-insights-codex/_index.md
+20-26Lines changed: 20 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,27 @@
1
1
---
2
-
title: Use Arm Performix Agentic Dynamic Insights from VS Code with Codex
2
+
title: Generate Arm Performix AI Insights in VS Code with Codex
3
3
4
4
draft: true
5
5
cascade:
6
6
draft: true
7
7
8
-
description: This Learning Path shows how to configure the Arm Performix MCP server with the Codex extension in Visual Studio Code, then generate AI Insights for an existing Arm Performix profiling run.
8
+
description: Configure the Arm Performix MCP server for Codex in Visual Studio Code and use profile evidence to generate and validate AI Insights.
9
9
10
10
minutes_to_complete: 20
11
11
12
12
who_is_this_for: This Learning Path is for software developers and performance engineers who want to optimize applications on Arm-based servers using Arm Performix.
13
13
14
14
learning_objectives:
15
-
- Configure the Arm Performix MCP server in the Codex extension for VS Code.
16
-
- Check that the assistant can see Arm Performix recipes and runs.
17
-
- Ask the assistant to list available Arm Performix runs.
18
-
- Generate AI Insights for a supported code hotspots run.
19
-
- Use the result to decide where to inspect or optimize next.
15
+
- Configure the Arm Performix MCP server for the Codex extension in VS Code.
16
+
- Verify that Codex can access Arm Performix recipes, targets, and runs.
17
+
- Create or select a supported Code Hotspots run.
18
+
- Generate an AI Insight and validate its recommendations against profile evidence.
20
19
21
20
prerequisites:
22
-
- Arm Performix version 2026.2.5 or later installed. Refer to the [Install Guide](https://learn.arm.com/install-guides/performix/) for instructions.
23
-
- Visual Studio Code installed with the Codex extension.
24
-
- Permission to use your organization-approved AI assistant with profile data, symbols, source excerpts, disassembly excerpts, and performance metrics.
25
-
- For remote Linux targets, configure key-based SSH access before using the Arm Performix MCP server.
26
-
- If you connect to your target as a non-root user, some recipes or target configurations might require passwordless sudo.
27
-
- Make sure your SSH known_hosts file contains the target host key.
28
-
- If your target configuration uses jump nodes, make sure known_hosts also contains the host key for each jump node.
21
+
- Arm Performix version 2026.2.5 or later installed. See the [Arm Performix install guide](/install-guides/performix/) for installation and target setup instructions.
22
+
- Visual Studio Code with the Codex extension installed.
23
+
- Access to Codex through ChatGPT sign-in, or an organization-approved OpenAI API key provided through the `OPENAI_API_KEY` environment variable.
24
+
- Permission from your organization to share profile data, symbols, source excerpts, disassembly excerpts, and performance metrics with Codex.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/performix-agentic-dynamic-insights-codex/configure_mcp_codex.md
+73-44Lines changed: 73 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,98 +3,127 @@ title: Configure the Arm Performix MCP server in Codex
3
3
4
4
weight: 3
5
5
6
+
description: Add the local Arm Performix MCP server to Codex and verify that the extension can access Performix tools and profiling runs.
7
+
6
8
layout: learningpathall
7
9
---
8
-
There are 3 ways to configure the MCP server:
10
+
## Choose a configuration method
9
11
10
-
- Through VS Code's GUI
11
-
- Through the Codex CLI
12
-
- By editing the Codex configuration file: `~/.codex/config.toml`.
12
+
Codex CLI and the Codex extension share MCP configuration on the same host. Choose one of these methods:
13
13
14
-
## Configure the MCP server through VS Code
14
+
- Use the Codex extension settings.
15
+
- Run `codex mcp add` in a terminal.
16
+
- Edit `~/.codex/config.toml`.
15
17
16
-
Use the following procedure in Visual Studio Code:
18
+
You only need to complete one method. The MCP server is a local standard input/output (STDIO) process started by the `apx` executable.
17
19
18
-
1. Open Visual Studio Code and open the Codex sidebar.
19
-
2. Open Codex settings.
20
-
3. In the Codex Settings tab, select MCP servers.
21
-
4. Click + Add server.
22
-
5. In the Name field, enter a name such as arm-performix.
23
-
6. In the Command to launch field, enter the path to the Arm Performix `apx` executable.
24
-
Default paths include:
20
+
{{% notice Note %}}
21
+
Configure the server on the host where Codex runs. In a local VS Code session, this is your development computer. In a remote development session, confirm which host runs the Codex extension and which Arm Performix data directory it uses.
22
+
{{% /notice %}}
25
23
26
-
```
24
+
## Configure the server in the Codex extension
25
+
26
+
To add the server in Visual Studio Code:
27
+
28
+
1. Open the Codex sidebar and select the gear icon.
29
+
2. Select **MCP servers**, then select **Add server**.
30
+
3. Enter `arm-performix` for the server name.
31
+
4. Select **STDIO** as the transport.
32
+
5. Enter the full path to the Arm Performix `apx` executable in the command field.
8. Click **Save** and restart the Codex extension.
65
+
7. Select **Save**, then select **Restart extension**.
48
66
49
-
## Configure the MCP server using Codex CLI
67
+
## Configure the MCP server with Codex CLI
50
68
51
-
Alternatively, you can use Codex's CLI to add an MCP server. Replace `<path-to-apx>` with the path to the `apx` executable on your system. If the path contains spaces, put the path in double quotation marks.
69
+
If the `codex` command is available in your terminal, add the same STDIO server from the command line. Replace `<path-to-apx>` with the full executable path for your host:
Before generating insights, ask Codex to confirm that it can see Arm Performix data:
105
+
If the `codex` command is available, confirm that Codex loaded the configuration:
85
106
86
-
```
87
-
List the available Arm Performix recipes and profiling runs. If no code hotspots runs are available, tell me that the MCP server is connected but there are no supported runs to analyze.
107
+
```bash
108
+
codex mcp list
88
109
```
89
110
90
-
If the assistant lists Arm Performix recipes or runs, the MCP server is connected.
111
+
Find `arm-performix` in the server list and check that its command and `mcp` argument are correct. If you don't use Codex CLI, open **MCP servers** from the Codex gear menu to review the same status.
91
112
92
-
To narrow the result, include a workload name, recipe, or time period:
113
+
Configuration alone doesn't prove that the tools can read Performix data. In a new Codex chat, enter:
93
114
115
+
```text
116
+
Use the Arm Performix MCP server to list the available recipes and profiling runs. For each run, include its run ID, recipe, target, workload, and creation time when those fields are available.
94
117
```
95
-
Show me a list of Arm Performix runs for which AI insights are available.
118
+
119
+
If Codex returns Performix recipes or runs, the end-to-end connection works. An empty run list isn't a connection failure if recipes or targets are returned.
120
+
121
+
Next, ask Codex to identify runs that support the insight workflow:
122
+
123
+
```text
124
+
List the Arm Performix Code Hotspots runs that can be used to generate an AI Insight. Include the run ID and enough workload and target details for me to choose the correct run.
96
125
```
97
126
98
-
Review the returned runs and identify the run you want to analyze. Note the run name or run ID.
127
+
Record the run ID you want to analyze. A run name can be changed and might not be unique, so use the run ID in later prompts.
99
128
100
-
If no supported Code Hotspots runs are available, you can create one from VS Code by asking the assistant to use the Arm Performix MCP server.
129
+
You have now configured and tested the MCP connection. If no supported run is available, create a Code Hotspots run in the next section.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/performix-agentic-dynamic-insights-codex/create_a_code_hotspots_run.md
+51-19Lines changed: 51 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,43 +3,75 @@ title: Create a Code Hotspots run
3
3
4
4
weight: 4
5
5
6
+
description: Create a representative Arm Performix Code Hotspots run through Codex or the Performix CLI and record its run ID.
7
+
6
8
layout: learningpathall
7
9
---
8
-
If no supported Code Hotspots runs are available, you can create one from VS Code by asking the assistant to use the Arm Performix MCP server.
10
+
## Prepare a representative workload
9
11
10
-
First, ask the assistant to list the configured targets:
12
+
You can skip this section if you already selected a supported Code Hotspots run.
11
13
12
-
```
13
-
List the available Arm Performix targets
14
-
```
14
+
For a new run, choose a workload that represents the behavior you want to optimize. Specify the executable with an absolute path because Performix doesn't support relative workload paths. Build it with debug symbols when possible so Performix can attribute samples to functions and source lines. Aim for at least 20 seconds of representative activity; a very short run might not collect enough samples for useful analysis.
15
+
16
+
Before profiling, make sure you know:
15
17
16
-
Choose the target that should run your workload, then ask the assistant to run Code Hotspots and generate insights from the result:
18
+
- The Performix target name.
19
+
- The executable path and arguments on the target.
20
+
- The workload's working directory and required environment variables.
21
+
- Whether running the workload has side effects.
17
22
23
+
## Create a run with Codex
24
+
25
+
First, ask Codex to list the configured targets:
26
+
27
+
```text
28
+
Use the Arm Performix MCP server to list the configured targets. Include each target's name and connection status when available.
18
29
```
19
-
Run the Code Hotspots recipe on the target named "<target name>" with this workload: "<command>".
20
-
When the run completes, generate AI insights for that run. Suggest where I should start investigating next.
30
+
31
+
Choose the correct target, then ask Codex to run Code Hotspots. Keep collection and analysis as separate requests so you can confirm the target and workload before remote execution:
32
+
33
+
```text
34
+
Use Arm Performix to run the Code Hotspots recipe on target "<target-name>" with workload "<command>". Before starting, repeat the target and workload and ask me to confirm them. When the run completes, return its run ID and collection status.
21
35
```
22
36
23
37
Replace:
24
38
25
-
-`<target name>` with the Performix target name returned by the assistant.
39
+
-`<target-name>` with the Performix target name returned by Codex.
40
+
-`<command>` with the command that starts your workload on the target.
26
41
27
-
-`<command>` with the command that starts your workload on the target.
42
+
For example:
28
43
29
-
For example:
44
+
```text
45
+
Use Arm Performix to run the Code Hotspots recipe on target "graviton-dev" with workload "/opt/myapp/bin/my_app --input /data/input.dat". Before starting, repeat the target and workload and ask me to confirm them. When the run completes, return its run ID and collection status.
46
+
```
47
+
48
+
After you confirm, Codex uses the MCP server to start the recipe. Review any permission request before allowing the assistant to run a command on the target.
49
+
50
+
## Create a run with the Performix CLI
51
+
52
+
If you prefer to control collection from a terminal, first check that the recipe dependencies and workload are ready:
The assistant uses the Arm Performix MCP server to prepare the target, run the Code Hotspots recipe.
69
+
The `--timeout 30` option limits profiling to 30 seconds; it doesn't make a short workload run longer. Use a duration that captures representative behavior. Add `--working-dir`, `--env`, or `--source` when your workload needs a specific working directory, environment variables, or host-based source mapping. For an already-running process, replace `--workload` with `--pid <process-id>`.
36
70
37
-
If you prefer to run the profile manually, use the Performix CLI:
Use `--timeout` for unattended profiling so the run ends automatically. If you are profiling an already-running process, use `--pid` instead of `--workload`.
77
+
Confirm that the new run completed successfully and record its run ID. You now have the stable identifier Codex needs to analyze the intended profile.
0 commit comments