arm-developer-tools / windowsperf-vs-extension

WindowsPerf GUI is a Visual Studio extension that aims to provide a GUI for WindowsPerf
https://marketplace.visualstudio.com/items?itemName=Arm.WindowsPerfGUI
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Add tests for JSON parser with example sampling and counting JSONs #29

Open PrzemekWirkus opened 2 weeks ago

PrzemekWirkus commented 2 weeks ago

Description

This issue should introduces unit tests for the JSON parser using the provided example JSON files. The tests will cover:

>wperf record -e arm_spe_0/ld=1/ -c 7 -v --json --timeout 10 --output spe_01.json -- cpython\PCbuild\arm64\python_d.exe -c 18**10**100
>wperf record -e arm_spe_0/ld=1/ -c 7 -v --json --timeout 20 --annotate --output spe_02.json -- cpython\PCbuild\arm64\python_d.exe -c 18**10**100
>wperf record -e arm_spe_0/ld=1,st=1/ -c 7 -v --json --timeout 15 --disassemble --output spe_03.json -- cpython\PCbuild\arm64\python_d.exe -c 18**10**100
>wperf record -e ld_spec:100000,vfp_spec:100000 -c 3 -v --json --timeout 15 --disassemble --output sample_04.json -- cpython\PCbuild\arm64\python_d.exe -c 18**10**100
>wperf stat -m Operation_Mix -c 0,1,2,3,5,8,13,21,34,55 --json --output count_05.json --timeout 10

Artifacts that can be used as input verification ones