Skip to content

Commit d322279

Browse files
committed
windowsperf: update WindowsPerf + WPA plugin docs
1 parent 8246365 commit d322279

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

content/learning-paths/laptops-and-desktops/windowsperf_wpa_plugin/windowsperf_wpa_plugin.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You can save a `.json` output from WindowsPerf by using the `--output` command f
2626
To create a file named `example.json`, run the following command:
2727

2828
```console
29-
wperf stat -e ld_spec --output example.json
29+
wperf stat -e ld_spec --timeout 5 --json --output example.json
3030
```
3131

3232
2. Open Windows Performance Analyzer, and see the following window:
@@ -54,9 +54,11 @@ You can use WPA to visualize PMU events in the recorded data.
5454
To try the timeline feature, run the command:
5555

5656
```command
57-
wperf stat -m dcache -c 0,1,2,3,4,5,6,7 -t -i 0 -n 50 --json
57+
wperf stat -m dcache -c 0,1,2,3,4,5,6,7 -t -i 0 -n 10 --timeout 2 --json --output example2.json
5858
```
5959

60+
Note: above command will run for ~20 seconds.
61+
6062
Open the generated output (`.json` file) in WPA to see the graph:
6163

6264
![timeline-by-core #center](figures/timeline-by-core.png)
@@ -72,9 +74,11 @@ To see all the generated graphs you can expand the `Counting timeline` section i
7274
Run another `wperf` command with different options:
7375

7476
```console
75-
wperf stat -t -i 0 -m imix,l1d_cache_miss_ratio,l1d_cache_mpki,l1d_tlb_miss_ratio,l1d_tlb_mpki -e inst_spec,vfp_spec,ld_spec,st_spec -c 1 --json
77+
wperf stat -t -i 0 -n 10 -m imix,l1d_cache_miss_ratio,l1d_cache_mpki,l1d_tlb_miss_ratio,l1d_tlb_mpki -e inst_spec,vfp_spec,ld_spec,st_spec -c 1 --timeout 2 --json --output --example3.json
7678
```
7779

80+
Note: above command will run for ~20 seconds.
81+
7882
The graph after opening the `.json` file is shown below:
7983

8084
![timeline-events-by-key #center](figures/timeline-events-by-key.png)
@@ -88,9 +92,11 @@ The WPA Plugin also provides visualization of [Arm telemetry metrics](https://de
8892
To visualize telemetry, run the following command:
8993

9094
```console
91-
wperf stat -t -i 0 -m imix,l1d_cache_miss_ratio,l1d_cache_mpki,l1d_tlb_miss_ratio,l1d_tlb_mpki -e inst_spec,vfp_spec,ld_spec,st_spec -c 1 --json
95+
wperf stat -t -i 0 -n 10 -m imix,l1d_cache_miss_ratio,l1d_cache_mpki,l1d_tlb_miss_ratio,l1d_tlb_mpki -e inst_spec,vfp_spec,ld_spec,st_spec -c 1 --timeout 2 --json --output example4.json
9296
```
9397

98+
Note: above command will run for ~20 seconds.
99+
94100
You can also see the telemetry timeline graphs under the graph explorer level in WPA.
95101

96102
These graphs are generated dynamically so only the relevant metrics for the given `.json` output file are visible.
@@ -101,4 +107,4 @@ Once expanded, a more in-depth view is visible under the Analysis tab of WPA.
101107

102108
![telemetry-table #center](figures/telemetry-table.png)
103109

104-
You now have a basic understanding of how to use `wperf` generated data in the Windows Performance Analyzer.
110+
You now have a basic understanding of how to use `wperf` generated data in the Windows Performance Analyzer.

0 commit comments

Comments
 (0)