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-instruction-mix/how-to-3.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,11 @@ Open Arm Performix and select the **Code Hotspots** recipe. If this is your firs
14
14
15
15
Set the launch command to your baseline binary with the number of tokens (`-n`) set to 150. This value keeps startup overhead small compared to inference time, so the profile minimizes the time taken to load the model weights:
16
16
17
-

17
+

18
18
19
19
The results show that `kernels::matmul_ref()` is the hottest function. Double-clicking on the function with show which lines of source code the samples are mostly attributed to the accumulate step of `kernels::matmul_ref()`.
20
20
21
-

21
+

22
22
23
23
This confirms that matrix multiplication is the highest-impact optimization target.
24
24
@@ -44,19 +44,19 @@ Set the launch command to your baseline binary with the same runtime arguments u
44
44
45
45
Use the same model and prompt arguments as your baseline terminal run so the measurements are comparable.
46
46
47
-

47
+

48
48
49
49
### Analyze static disassembly
50
50
51
51
After the run completes, review static disassembly first. This view is ordered by percentage contribution and provides a high-level profile of the application’s generated instruction stream. It can help you identify broad characteristics, such as whether the code is branch-heavy, dominated by memory operations, or making effective use of SIMD instructions. Use this static view to understand overall code generation patterns rather than to attribute performance to specific functions or source lines. Dynamic analysis is typically more relevant for optimization because it reflects the instructions that are actually executed at runtime.
52
52
53
-

53
+

54
54
55
55
### Dynamic analysis
56
56
57
57
Then inspect dynamic analysis bar chart to see where sampled runtime work is concentrated. Dynamic data is typically more useful for optimization because it reflects actual execution behavior for your input, runtime settings, and call frequencies.
58
58
59
-

59
+

60
60
61
61
Finally, in dynamic functions, you can break down operation types to individual functions. This is particularly useful when no single function dominates the profile, allowing you to inspect dynamic instruction patterns for specific functions.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/performix-instruction-mix/how-to-4.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ args = [
64
64
65
65
Restart your coding assistant, then prompt it to run Performix Instruction Mix and Code Hotspots on your `gpt2_user` binary and suggest Arm intrinsics improvements.
66
66
67
-

67
+

0 commit comments