Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Context: jonathanpeppers/Mono.Profiler.Android#23

This is an initial Mono AOT profile for .NET 10.

I had to build a .NET 10 version of libmono-profiler-aot.so and release a 10.0.0-preview1 Mono.AotProfiler.Android NuGet package. Others will be able to update these more easily in the future.

An average of 10 runs on a Pixel 7 of dotnet new maui:

Before:
Average(ms): 486.4
Std Err(ms): 5.12770253947451
Std Dev(ms): 16.2152191885689
After:
Average(ms): 462.2
Std Err(ms): 3.69022733415948
Std Dev(ms): 11.6695234597552

This is reasonable compared to the numbers I recently got for .NET 9:

Context: jonathanpeppers/Mono.Profiler.Android#23

This is an initial Mono AOT profile for .NET 10.

I had to build a .NET 10 version of `libmono-profiler-aot.so` and
release a 10.0.0-preview1 `Mono.AotProfiler.Android` NuGet package.
Others will be able to update these more easily in the future.

An average of 10 runs on a Pixel 7 of `dotnet new maui`:

    Before:
    Average(ms): 486.4
    Std Err(ms): 5.12770253947451
    Std Dev(ms): 16.2152191885689
    After:
    Average(ms): 462.2
    Std Err(ms): 3.69022733415948
    Std Dev(ms): 11.6695234597552

This is reasonable compared to the numbers I recently got for .NET 9:

* 6fc44fb
Copilot AI review requested due to automatic review settings May 21, 2025 16:50
@jonathanpeppers jonathanpeppers requested a review from a team as a code owner May 21, 2025 16:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Mono AOT profiling setup for .NET 10 by bumping the profiler package dependency and adding troubleshooting guidance.

  • Bump Mono.AotProfiler.Android package from 9.0.0-preview1 to 10.0.0-preview1
  • Add a new “Troubleshooting” section to the README with logging and troubleshooting steps

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

File Description
src/ProfiledAot/src/Directory.Build.targets Updated PackageReference to 10.0.0-preview1
src/ProfiledAot/README.md Added troubleshooting instructions
Comments suppressed due to low confidence (1)

src/ProfiledAot/README.md:86

  • The README refers to commenting out a debug.mono.log setting in Directory.Build.targets, but that file does not include such a setting. Please clarify the correct file or add the instruction where the property is configured.
`src\ProfiledAot\src\Directory.Build.targets` that sets

Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh thats why I tried I couldn't t get results. I think it was the Directory.Build.targets

<Compile Include="$(MSBuildThisFileDirectory)CommonMethods.cs" />
<AndroidAotProfile Include="custom.aprof" />
<PackageReference Include="Mono.AotProfiler.Android" Version="9.0.0-preview1" />
<PackageReference Include="Mono.AotProfiler.Android" Version="10.0.0-preview1" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I didn't create this package until today, when it didn't work.

@jonathanpeppers jonathanpeppers merged commit b7f7c6c into net10.0 May 21, 2025
113 of 130 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/net10-aotprofile branch May 21, 2025 20:25
@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants