Skip to content

Commit 7305a1b

Browse files
adding summary and faqs
1 parent 40f1108 commit 7305a1b

4 files changed

Lines changed: 61 additions & 11 deletions

File tree

content/learning-paths/servers-and-cloud-computing/performix-agentic-dynamic-insights-codex/_index.md

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Generate Arm Performix AI insights in Visual Studio Code with Codex
33

4-
description: Configure the Arm Performix MCP server for Codex in Visual Studio Code and use profile evidence to generate and validate AI Insights.
4+
description: Configure the Arm Performix MCP server for Codex in Visual Studio Code and use profile evidence to generate and validate AI insights.
55

66
minutes_to_complete: 20
77

@@ -19,9 +19,59 @@ prerequisites:
1919
- Access to Codex through ChatGPT sign-in, or an organization-approved OpenAI API key provided through the `OPENAI_API_KEY` environment variable.
2020
- Permission from your organization to share profile data, symbols, source excerpts, disassembly excerpts, and performance metrics with Codex.
2121

22+
# START generated_summary_faq
23+
generated_summary_faq:
24+
template_version: summary-faq-v3
25+
generated_at: '2026-07-27T15:24:59Z'
26+
generator: ai
27+
ai_assisted: true
28+
ai_review_required: true
29+
model: gpt-5
30+
prompt_template: summary-faq-v3
31+
source_hash: 3e21e94826b1e02673c240ad88dc503354a1920397903348316d696cf4e2aa2c
32+
summary_generated_at: '2026-07-27T15:24:59Z'
33+
summary_source_hash: 3e21e94826b1e02673c240ad88dc503354a1920397903348316d696cf4e2aa2c
34+
faq_generated_at: '2026-07-27T15:24:59Z'
35+
faq_source_hash: 3e21e94826b1e02673c240ad88dc503354a1920397903348316d696cf4e2aa2c
36+
summary: >-
37+
You'll learn how to connect Codex in Visual Studio Code to the Arm Performix Model
38+
Context Protocol (MCP) server, generate an AI insight for a specific Code Hotspots run, and
39+
validate the result with profile evidence. After configuring the MCP server on your local machine, you’ll select or create a representative Code Hotspots run, request an AI insight by run ID, and evaluate its supporting evidence.
40+
Then, you'll open the same run in Arm Performix to inspect flame graphs, functions, call
41+
stacks, source, and disassembly to confirm the recommendation.
42+
faqs:
43+
- question: How do I confirm Codex is connected to Arm Performix through MCP?
44+
answer: >-
45+
Ask Codex to list Arm Performix recipes, targets, or supported Code Hotspots runs. A successful
46+
listing confirms the MCP server is configured and reachable.
47+
- question: Which MCP configuration method should I use, and where should I configure it?
48+
answer: >-
49+
You can update Codex extension settings, run the `codex mcp add` command, or
50+
edit `~/.codex/config.toml`. Configure the MCP on the host where Codex runs; in remote development,
51+
verify which machine hosts Codex.
52+
- question: What should I prepare before creating a new Code Hotspots run?
53+
answer: >-
54+
Choose a representative workload and specify the executable with an absolute path. Build the workload with debug symbols when possible and aim for at least 20 seconds of activity to collect
55+
enough samples.
56+
- question: How do I make sure Codex uses the exact profile I want?
57+
answer: >-
58+
Request the AI Insight using the run ID. If you don’t know it, ask Codex to list supported
59+
Code Hotspots runs with IDs, targets, workloads, and creation times. Then, select the correct
60+
ID.
61+
- question: What should I check to validate an AI Insight against the profile?
62+
answer: >-
63+
Open the same run in Arm Performix and inspect the **Flame graph**, **Functions**, **Call Stack**,
64+
**Source**, and **Disassembly** views. Confirm that the cited functions, call paths, and sample percentages
65+
match the evidence referenced by the insight.
66+
# END generated_summary_faq
67+
2268
author:
2369
- Julie Gaskin
2470

71+
generate_summary_faq: false
72+
rerun_summary: false
73+
rerun_faqs: false
74+
2575
### Tags
2676
skilllevels: Introductory
2777
subjects: Performance and Architecture

content/learning-paths/servers-and-cloud-computing/performix-agentic-dynamic-insights-codex/configure_mcp_codex.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Record the run ID you want to analyze. A run name can be changed and might not b
130130

131131
## Troubleshoot the MCP connection
132132

133-
Use the following checks to diagnore MCP connection issues:
133+
Use the following checks to diagnose MCP connection issues:
134134

135135
### The Arm Performix MCP server isn't listed
136136

@@ -178,7 +178,7 @@ If you have several MCP servers, an ambiguous prompt such as `give me insights`
178178

179179
### Code Hotspots runs are missing
180180

181-
Check:
181+
Check for the following:
182182

183183
- You created at least one completed Code Hotspots run.
184184
- The MCP server runs as the same user who created or imported the run.
@@ -198,4 +198,4 @@ If the CLI also returns no run, create or import a run. If the CLI returns the r
198198

199199
You've now configured and tested the MCP connection.
200200

201-
Next, you'll create a Code Hotspots run if no supported run is available. If you already. have a supported run, skip to [Generate Arm Performix AI insights for a Code Hotspots run](/learning-paths/servers-and-cloud-computing/performix-agentic-dynamic-insights-codex/generate_ai_insights/).
201+
Next, you'll create a Code Hotspots run if no supported run is available. If you already have a supported run, skip to [Generate Arm Performix AI insights for a Code Hotspots run](/learning-paths/servers-and-cloud-computing/performix-agentic-dynamic-insights-codex/generate_ai_insights/).

content/learning-paths/servers-and-cloud-computing/performix-agentic-dynamic-insights-codex/create_a_code_hotspots_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For example:
4545
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.
4646
```
4747

48-
After you confirm the target, Codex uses the MCP server to start the recipe. Review any permission request before allowing the assistant to run a command on the target.
48+
After you confirm the target and workload, Codex uses the MCP server to start the recipe. Review any permission request before allowing the assistant to run a command on the target.
4949

5050
## Create a run with the Arm Performix CLI
5151

content/learning-paths/servers-and-cloud-computing/performix-agentic-dynamic-insights-codex/open-in-performix.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ layout: learningpathall
1111

1212
A chat response helps you triage a performance problem, but the underlying profile is the source of evidence. Open the same run ID in Arm Performix and inspect the views relevant to the claim:
1313

14-
- **Flame graph** to see where sampled CPU time accumulates across call paths.
15-
- **Functions** to confirm which functions account for the largest sample percentages.
16-
- **Call Stack** to distinguish a function's own cost from the cost of its callees.
17-
- **Source** to correlate samples with source lines when source mapping is available.
18-
- **Disassembly** to inspect generated instructions and confirm claims about the compiled code.
19-
- **Compare** to evaluate equivalent before-and-after runs.
14+
- **Flame graph** to see where sampled CPU time accumulates across call paths
15+
- **Functions** to confirm which functions account for the largest sample percentages
16+
- **Call Stack** to distinguish a function's own cost from the cost of its callees
17+
- **Source** to correlate samples with source lines when source mapping is available
18+
- **Disassembly** to inspect generated instructions and confirm claims about the compiled code
19+
- **Compare** to evaluate equivalent before-and-after runs
2020

2121
Use the AI insight to focus your investigation, not replace it. For example, if the insight says a loop appears scalar, inspect its disassembly and compiler flags before changing the implementation. If Code Hotspots only shows that the loop is hot, run Instruction Mix or another appropriate recipe before concluding that scalar execution is the cause.
2222

0 commit comments

Comments
 (0)