[android] update .aotprofile
for .NET 9 RC 2
#25035
Merged
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.
I recorded these with the
35.0.0-rc.2.145
Android workload as there was one change that disables$(AndroidEnableMarshalMethods)
that impacts.aotprofile
files:With this change in place, managed C# methods like these will reappear in the profile:
In the future, we hope to bring back
$(AndroidEnableMarshalMethods)
once the known issues are worked out.Measuring the new profile on a Pixel 7 Pro, an average of 10 runs of the
dotnet new maui
project template:So, this change likely avoids some startup regression on Android, as the C# methods that run on startup when
AndroidEnableMarshalMethods=false
are now AOT-compiled.I also added
-bl
to theREADME.md
, as I thought that was useful.