Skip to content

Commit

Permalink
Merge pull request #303 from AArnott/optprof_fixes
Browse files Browse the repository at this point in the history
Add OptProf.targets and comments to help onboarding
  • Loading branch information
AArnott authored Oct 29, 2024
2 parents 3427406 + 1d50f65 commit 46114df
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ parameters:
##### Feel free to adjust their default value as needed.

# Whether this repo uses OptProf to optimize the built binaries.
# When enabling this, be sure to update these files:
# - OptProf.targets: InstallationPath and match TestCase selection with what's in the VS repo.
# - The project file(s) for the libraries to optimize must import OptProf.targets (for multi-targeted projects, only import it for ONE target).
# - OptProf.yml: Search for LibraryName (or your library's name) and verify that those names are appropriate.
# - OptProf_part2.yml: Search for LibraryName (or your library's name) and verify that those names are appropriate.
# and create pipelines for OptProf.yml, OptProf_part2.yml
- name: EnableOptProf
type: boolean
default: false
Expand Down
1 change: 0 additions & 1 deletion azure-pipelines/microbuild.after.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ steps:
usePat: true
displayName: 📢 Publish to Artifact Services - ProfilingInputs
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
continueOnError: true

- task: PublishBuildArtifacts@1
inputs:
Expand Down
17 changes: 17 additions & 0 deletions src/OptProf.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project>
<ItemGroup>
<OptProf Include="$(TargetPath)">
<Technology>IBC</Technology>
<InstallationPath>Common7\IDE\PrivateAssemblies\$(TargetFileName)</InstallationPath>
<InstrumentationArguments>/ExeConfig:"%VisualStudio.InstallationUnderTest.Path%\Common7\IDE\vsn.exe"</InstrumentationArguments>
<Scenarios>
<TestContainer Name="VSPE" Repository="VS">
<!-- When adding to this list, be sure to also add to VS repo too (e.g. https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/196226) -->
<TestCase FullyQualifiedName="VSPE.OptProfTests.vs_env_startup_devenv" />
<TestCase FullyQualifiedName="VSPE.OptProfTests.vs_perf_DesignTime_solution_loadclose_cs_picasso" />
<TestCase FullyQualifiedName="VSPE.OptProfTests.vs_ddbvtqa_vbwin" />
</TestContainer>
</Scenarios>
</OptProf>
</ItemGroup>
</Project>

0 comments on commit 46114df

Please sign in to comment.