terminal/src/cascadia/TerminalSettingsEditor
Michael Niksa 7dadde5dd6
Implement PGO in pipelines for AMD64 architecture; supply training test scenarios (#10071)
Implement PGO in pipelines for AMD64 architecture; supply training test scenarios

## References
- #3075 - Relevant to speed interests there and other linked issues.

## PR Checklist
* [x] Closes #6963
* [x] I work here.
* [x] New UIA Tests added and passed. Manual build runs also tested.

## Detailed Description of the Pull Request / Additional comments
- Creates a new pipeline run for creating instrumented binaries for Profile Guided Optimization (PGO).
- Creates a new suite of UIA tests on the full Windows Terminal app to run PGO training scenarios on instrumented binaries (and incidentally can be used to write other UIA tests later for the full Terminal app.)
- Creates a new NuGet artifact to store trained PGO databases (PGD files) at `Microsoft.Internal.Windows.Terminal.PGODatabase`
- Creates a new NuGet artifact to supply large-scale test content for automated tests at `Microsoft.Internal.Windows.Terminal.TestContent`
- Adjusts the release pipeline to run binaries in PGO optimized mode where content from PGO databases is leveraged at link time to optimize the final release build

The following binaries are trained:
- OpenConsole.exe
- WindowsTerminal.exe
- TerminalApp.dll
- TerminalConnection.dll
- Microsoft.Terminal.Control.dll
- Microsoft.Terminal.Remoting.dll
- Microsoft.Terminal.Settings.Editor.dll
- Microsoft.Terminal.Settings.Model.dll

In the future, adding `<PgoTarget>true</PgoTarget>` to a new `vcxproj` file will automatically enroll the DLL/EXE for PGO instrumentation and optimization going forward.

Two training test scenarios are implemented:
- Smoke test the Terminal by just opening it and typing a bit of text then exiting. (Should help focus on the standard launch path.)
- Optimize bulk text output by launching terminal, outputting `big.txt`, then exiting.

Additional scenarios can be contributed to the `WindowsTerminal_UIATests` project with the `[TestProperty("IsPGO", "true")]` annotation to add them to the suite of scenarios for PGO.

**NOTE:** There are currently no weights applied to the various test scenarios. We will revisit that in the future when/if necessary.

## Validation Steps Performed
- [x] - Training run completed at https://dev.azure.com/ms/terminal/_build?definitionId=492&_a=summary
- [x] - Optimization run completed locally (by forcing `PGOBuildMode` to `Optimize` on my local machine, manually retrieving the databases with NuGet, and building).
- [x] - Validated locally that x86 and ARM64 do not get trained and automatically skip optimization as databases are not present for them.
- [x] - Smoke tested optimized binary versus latest releases. `big.txt` output through CMD is ~11-12seconds prior to PGO and just over 8 seconds with PGO.
2021-05-13 21:12:30 +00:00
..
Resources/en-US Create a new page for "Add new profile" in the SUI (#9352) 2021-05-05 04:15:25 +00:00
Actions.cpp Introduce ActionMap to Terminal Settings Model (#9621) 2021-05-04 21:50:13 -07:00
Actions.h Introduce ActionMap to Terminal Settings Model (#9621) 2021-05-04 21:50:13 -07:00
Actions.idl Add a simple page for keybindings (#9253) 2021-02-23 23:37:23 +00:00
Actions.xaml Introduce ActionMap to Terminal Settings Model (#9621) 2021-05-04 21:50:13 -07:00
AddProfile.cpp Create a new page for "Add new profile" in the SUI (#9352) 2021-05-05 04:15:25 +00:00
AddProfile.h Create a new page for "Add new profile" in the SUI (#9352) 2021-05-05 04:15:25 +00:00
AddProfile.idl Create a new page for "Add new profile" in the SUI (#9352) 2021-05-05 04:15:25 +00:00
AddProfile.xaml Add the profile, page icons to the page headers (#10046) 2021-05-13 10:35:53 +00:00
ColorLightenConverter.cpp Persist selected color scheme on navigation; Don't gray-out color swatches (#8799) 2021-01-19 19:18:07 +00:00
ColorLightenConverter.h Persist selected color scheme on navigation; Don't gray-out color swatches (#8799) 2021-01-19 19:18:07 +00:00
ColorSchemes.cpp Introduce MS.Term.Core.Color to replace W.U.Color for Core/Control/TSM (#9658) 2021-03-30 20:15:49 +00:00
ColorSchemes.h Replace some of our macros to reduce confusion, increase success (#9376) 2021-03-04 11:27:03 -08:00
ColorSchemes.idl Redesign color schemes page (#9196) 2021-02-19 18:20:04 +00:00
ColorSchemes.xaml Auto-format our XAML files and enforce in CI (#9589) 2021-03-29 17:09:38 -05:00
ColorToBrushConverter.cpp Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
ColorToBrushConverter.h Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
ColorToHexConverter.cpp Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
ColorToHexConverter.h Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
CommonResources.xaml Auto-format our XAML files and enforce in CI (#9589) 2021-03-29 17:09:38 -05:00
Converters.idl Introduce ActionMap to Terminal Settings Model (#9621) 2021-05-04 21:50:13 -07:00
EnumEntry.h Replace some of our macros to reduce confusion, increase success (#9376) 2021-03-04 11:27:03 -08:00
EnumEntry.idl Enable text search on combo boxes (#9206) 2021-02-19 18:11:07 +00:00
FontWeightConverter.cpp Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
FontWeightConverter.h Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
GlobalAppearance.cpp Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
GlobalAppearance.h Replace some of our macros to reduce confusion, increase success (#9376) 2021-03-04 11:27:03 -08:00
GlobalAppearance.idl Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
GlobalAppearance.xaml Auto-format our XAML files and enforce in CI (#9589) 2021-03-29 17:09:38 -05:00
Interaction.cpp Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00
Interaction.h Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00
Interaction.idl Add missing settings to the settings UI (#8774) 2021-01-14 23:57:59 +00:00
Interaction.xaml Make whitespace trimming in block selection configurable (#9807) 2021-04-23 22:36:51 +00:00
InvertedBooleanConverter.cpp Polish settings UI localized text (#9124) 2021-02-19 14:27:30 -08:00
InvertedBooleanConverter.h Polish settings UI localized text (#9124) 2021-02-19 14:27:30 -08:00
InvertedBooleanToVisibilityConverter.cpp Add UI for adding, renaming, and deleting a color scheme (#8403) 2020-12-17 23:14:07 +00:00
InvertedBooleanToVisibilityConverter.h Polish settings UI localized text (#9124) 2021-02-19 14:27:30 -08:00
Launch.cpp Implement UI for choosing default terminal inside Settings page (#9907) 2021-04-28 10:43:30 +00:00
Launch.h Implement UI for choosing default terminal inside Settings page (#9907) 2021-04-28 10:43:30 +00:00
Launch.idl Implement UI for choosing default terminal inside Settings page (#9907) 2021-04-28 10:43:30 +00:00
Launch.xaml Implement UI for choosing default terminal inside Settings page (#9907) 2021-04-28 10:43:30 +00:00
MainPage.cpp Add the profile, page icons to the page headers (#10046) 2021-05-13 10:35:53 +00:00
MainPage.h Create a new page for "Add new profile" in the SUI (#9352) 2021-05-05 04:15:25 +00:00
MainPage.idl Propagate the hosting HWND to the new IFileDialogs (#9789) 2021-04-12 16:55:51 +00:00
MainPage.xaml Add the profile, page icons to the page headers (#10046) 2021-05-13 10:35:53 +00:00
Microsoft.Terminal.Settings.Editor.def Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
Microsoft.Terminal.Settings.Editor.vcxproj Implement PGO in pipelines for AMD64 architecture; supply training test scenarios (#10071) 2021-05-13 21:12:30 +00:00
Microsoft.Terminal.Settings.Editor.vcxproj.filters Remove bug fixes which aren't needed in VS 16.9 (#9953) 2021-04-28 10:43:05 +00:00
packages.config Update C++/WinRT to 2.0.210309.3 (#9437) 2021-03-10 16:04:59 -06:00
PaddingConverter.cpp Add a slider for the padding setting in the SUI (#8851) 2021-01-26 02:22:24 +00:00
PaddingConverter.h Add a slider for the padding setting in the SUI (#8851) 2021-01-26 02:22:24 +00:00
pch.cpp Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
pch.h Replace Windows.Storage.Pickers with Common File Dialogs (#9760) 2021-04-12 13:12:08 +00:00
PercentageConverter.cpp Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
PercentageConverter.h Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
Profiles.cpp Fix for configuring starting directory in SUI when defaults sets it to null (#9862) 2021-04-21 10:53:41 +00:00
Profiles.h Keep the last selected pivot active when navigating over profile pages (#10047) 2021-05-07 04:13:06 +00:00
Profiles.idl Add support for a profile to specify an "unfocused" appearance (#8392) 2021-04-08 22:46:16 +00:00
Profiles.xaml Auto-format our XAML files and enforce in CI (#9589) 2021-03-29 17:09:38 -05:00
Rendering.cpp Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
Rendering.h Replace some of our macros to reduce confusion, increase success (#9376) 2021-03-04 11:27:03 -08:00
Rendering.idl Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
Rendering.xaml Auto-format our XAML files and enforce in CI (#9589) 2021-03-29 17:09:38 -05:00
SettingContainer.cpp Add support for a profile to specify an "unfocused" appearance (#8392) 2021-04-08 22:46:16 +00:00
SettingContainer.h Introduce setting override tracking and update SettingContainer (#9079) 2021-02-19 23:50:52 +00:00
SettingContainer.idl Introduce setting override tracking and update SettingContainer (#9079) 2021-02-19 23:50:52 +00:00
SettingContainerStyle.xaml Auto-format our XAML files and enforce in CI (#9589) 2021-03-29 17:09:38 -05:00
StringIsEmptyConverter.cpp Polish the Background Image settings (#8778) 2021-01-18 22:34:07 +00:00
StringIsEmptyConverter.h Polish the Background Image settings (#8778) 2021-01-18 22:34:07 +00:00
StringIsNotDesktopConverter.cpp Polish the Background Image settings (#8778) 2021-01-18 22:34:07 +00:00
StringIsNotDesktopConverter.h Polish the Background Image settings (#8778) 2021-01-18 22:34:07 +00:00
Utils.cpp Introduce the Terminal Settings Editor (#8048) 2020-12-11 13:47:10 -08:00
Utils.h Order enum settings according to enum values (#8784) 2021-01-14 11:47:33 +00:00
ViewModelHelpers.h Introduce setting override tracking and update SettingContainer (#9079) 2021-02-19 23:50:52 +00:00
ViewModelHelpers.idl.h Introduce setting override tracking and update SettingContainer (#9079) 2021-02-19 23:50:52 +00:00