Skip to content
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

[Mono] Enable AOT to print out the list of compiled methods #81567

Merged
merged 3 commits into from
Feb 6, 2023

Conversation

fanyang-mono
Copy link
Member

@fanyang-mono fanyang-mono commented Feb 2, 2023

Print out tokens of compiled methods into one text file per assembly. To enable this feature, the user needs to provide a location to save these files, by adding aot switch compiled-methods-outpath=<desired_location>. For each aot compiled assembly, there will be a corresponding text file being generated into that location. For example, the compile method token list of System.Private.CoreLib.dll will be saved into System_Private_CoreLib_dll_compiled_methods.txt.

The compiled method tokens will later be used by an IL trimming tool to trim away compiled method IL code. That way it makes Maui Android app smaller and app creator's IP will be protected as well.

Fixes #79551

@fanyang-mono
Copy link
Member Author

CI failure is a known issue #81123

@fanyang-mono fanyang-mono merged commit c606f5a into dotnet:main Feb 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Mono] Enable Mono AOT compiler to print out the list of compiled methods
3 participants