Add NativeAOT size and experimentation options#1403
Open
Sergio0694 wants to merge 1 commit intostaging/AOTfrom
Open
Add NativeAOT size and experimentation options#1403Sergio0694 wants to merge 1 commit intostaging/AOTfrom
Sergio0694 wants to merge 1 commit intostaging/AOTfrom
Conversation
Sergio0694
commented
Dec 1, 2023
| <IlcDisableReflection>false</IlcDisableReflection> | ||
|
|
||
| <!-- Enable generating files to inspect the binary size with sizoscope (https://github.com/MichalStrehovsky/sizoscope) --> | ||
| <IlcGenerateMstatFile>true</IlcGenerateMstatFile> |
Member
Author
There was a problem hiding this comment.
@manodasanW when you have time, could you help updating the CI to upload the MSTAT/.xml files? They will be in the \obj\x64\Release\net8.0-windows10.0.22621\win-x64\native folder for the AuthoringTest project.
We need these 3:
AuthoringTest.mstatAuthoringTest.codegen.dgml.xmlAuthoringTest.scan.dgml.xml
They might be relatively large (the .xml ones might be ~80 MB each or so), but since it's all plain text we should be able to just make a .zip and they should compress very well. In my sample app, they are ~150 MB in total, but once compressed in a .zip file the result is just ~17 MB, which seems fine? 🙂
fa62a4c to
f02bf33
Compare
b12a24c to
5754dcb
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds some size saving and experimentation options to the authoring sample using NativeAOT. Most importantly, it also sets the options to generate the necessary files to use sizoscope, to investigate and improve the published binary size.
TODO: upload the .mstat and .xml files to the CI.