@@ -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
32322. 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.
5454To 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+
6062Open 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
7274Run 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+
7882The 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
8892To 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+
94100You can also see the telemetry timeline graphs under the graph explorer level in WPA.
95101
96102These 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