-
Notifications
You must be signed in to change notification settings - Fork 285
[perf][nativeaot] Add Native AOT performance measurements for iOS #3145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
cincuranet
merged 19 commits into
dotnet:main
from
kotlarmilos:feature/nativeaot-perf-measurements
Jul 21, 2023
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d9bfc74
Add support for Native AOT runs
kotlarmilos 07f3bb3
Disable perf jobs
kotlarmilos 911501b
Add runtimeFlavor to the job name
kotlarmilos 290524a
Add RuntimeFlavor parameter to the restore scenario command
kotlarmilos 76e4253
Define optional command props as a property
kotlarmilos f5630de
Add Xamarin iOS scenario
kotlarmilos ad0f60a
Add support for Native AOT publish
kotlarmilos 37fd153
Test the perf CI
kotlarmilos 2d1a9d2
Test the perf CI
kotlarmilos 90f00c3
Test the perf CI
kotlarmilos 28ad345
Implement install_versioned_xamarin function
kotlarmilos 683fe2d
Test the perf CI
kotlarmilos d126468
Test the perf CI
kotlarmilos 943cd86
Use runtime flavor on Helix
kotlarmilos a4adf76
Enable perf jobs
kotlarmilos 93a22cd
Use correct package name for the Xamarin startup job
kotlarmilos 2f52855
Test perf jobs
kotlarmilos 8f05788
Use correct package name for Xamarin startup measurement
kotlarmilos 3aa42ff
Retrieve version from an assembly in intermediate directory
kotlarmilos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ''' | ||
| post cleanup script | ||
| ''' | ||
|
|
||
| from shared.postcommands import clean_directories | ||
|
|
||
| clean_directories() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| ''' | ||
| pre-command | ||
| ''' | ||
| import shutil | ||
| import sys | ||
| import subprocess | ||
| from performance.logger import setup_loggers, getLogger | ||
| from shared import const | ||
| from shared.mauisharedpython import remove_aab_files, install_versioned_maui | ||
| from shared.precommands import PreCommands | ||
| from shared.versionmanager import versions_write_json, get_version_from_dll_powershell_ios | ||
| from test import EXENAME | ||
|
|
||
| setup_loggers(True) | ||
|
|
||
| precommands = PreCommands() | ||
| install_versioned_maui(precommands) | ||
|
|
||
| # Setup the Xamarin folder | ||
| precommands.new(template='ios', | ||
| output_dir=const.APPDIR, | ||
| bin_dir=const.BINDIR, | ||
| exename=EXENAME, | ||
| working_directory=sys.path[0], | ||
| no_restore=False) | ||
|
|
||
| # Build the APK | ||
| shutil.copy('./MauiNuGet.config', './app/Nuget.config') | ||
| precommands.execute(['/p:_RequireCodeSigning=false', '/p:ApplicationId=net.dot.xamarintesting']) | ||
|
|
||
| # Remove the aab files as we don't need them, this saves space | ||
| output_dir = const.PUBDIR | ||
| if precommands.output: | ||
| output_dir = precommands.output | ||
| remove_aab_files(output_dir) | ||
|
|
||
| # Copy the XamarinVersion to a file so we have it on the machine | ||
| xamarin_version = get_version_from_dll_powershell_ios(rf"./{const.APPDIR}/obj/Release/net8.0-ios/ios-arm64/linked/Microsoft.iOS.dll") | ||
| version_dict = { "xamarinVersion": xamarin_version } | ||
| versions_write_json(version_dict, rf"{output_dir}/versions.json") | ||
| print(f"Versions: {version_dict} from location " + rf"./{const.APPDIR}/obj/Release/net8.0-ios/ios-arm64/linked/Microsoft.iOS.dll") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ''' | ||
| Mobile Xamarin App | ||
| ''' | ||
| from shared.const import PUBDIR | ||
| from shared.runner import TestTraits, Runner | ||
| from shared.versionmanager import versions_read_json_file_save_env | ||
|
|
||
| EXENAME = 'XamariniOSDefault' | ||
|
|
||
| if __name__ == "__main__": | ||
| versions_read_json_file_save_env(rf"./{PUBDIR}/versions.json") | ||
|
|
||
| traits = TestTraits(exename=EXENAME, | ||
| guiapp='false', | ||
| ) | ||
| Runner(traits).run() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.