Skip to content

Commit 5fd400d

Browse files
committed
Add tracing
1 parent 4b1c1f8 commit 5fd400d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.azure-pipelines/steps/run-tests-windows.yml

+16
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ parameters:
22
runIntegrationTests:
33

44
steps:
5+
- powershell: |
6+
Invoke-WebRequest -Uri https://go.microsoft.com/fwlink/?linkid=2026036 -OutFile adksetup.exe
7+
adksetup.exe /features OptionId.WindowsPerformanceToolkit /ceip off /installpath T:\ADK
8+
59
- task: UsePythonVersion@0
610
displayName: Use Python $(python.version)
711
inputs:
@@ -11,9 +15,21 @@ steps:
1115
- bash: pip install --upgrade setuptools tox
1216
displayName: Install Tox
1317

18+
- script: '"C:\ADK\Windows Performance Toolkit\wpr.exe" -start GeneralProfile.light'
19+
displayName: Start tracing
20+
1421
- script: tox -e py -- -m unit -n 3 --junit-xml=junit/unit-test.xml
1522
displayName: Tox run unit tests
1623

24+
- script: '"C:\ADK\Windows Performance Toolkit\wpr.exe" -stop T:\wpr-result.etl'
25+
displayName: Stop tracing
26+
27+
- task: PublishBuildArtifacts@1
28+
displayName: 'Publish trace results'
29+
inputs:
30+
pathtoPublish: T:\wpr-result.etl
31+
artifactName: wpr-result.etl
32+
1733
- ${{ if eq(parameters.runIntegrationTests, 'true') }}:
1834
- powershell: |
1935
# Fix Git SSL errors

0 commit comments

Comments
 (0)