Skip to content

Conversation

@jonathanpeppers
Copy link
Owner

@jonathanpeppers jonathanpeppers commented May 21, 2025

  • PackageVersion=10.0.0-preview1
  • Binaries from:

https://github.com/jonathanpeppers/runtime/tree/libmono-profiler-aot.so-net10p5

Build commands for dotnet/runtime are:

./build.sh mono -c Release -a arm -os android
./build.sh mono -c Release -a arm64 -os android
./build.sh mono -c Release -a x86 -os android
./build.sh mono -c Release -a x64 -os android

With the changes to CMakeLists.txt:

  if(HOST_ANDROID)
    add_library(mono-profiler-aot SHARED aot.c helper.c)
    target_compile_definitions(mono-profiler-aot PRIVATE -DMONO_DLL_EXPORT)
    target_link_libraries(mono-profiler-aot PRIVATE monosgen-shared monoapi eglib_objects log)
    set_target_properties(mono-profiler-aot PROPERTIES OUTPUT_NAME mono-profiler-aot)
    install(TARGETS mono-profiler-aot LIBRARY)
  endif()

* PackageVersion=10.0.0-preview1
* Binaries from:

https://github.com/jonathanpeppers/runtime/tree/libmono-profiler-aot.so-net10p5

Build commands for dotnet/runtime are:

    ./build.sh mono -c Release -a arm -os android
    ./build.sh mono -c Release -a arm64 -os android
    ./build.sh mono -c Release -a x86 -os android
    ./build.sh mono -c Release -a x64 -os android

With the changes to `CMakeLists.txt`:

  if(HOST_ANDROID)
    add_library(mono-profiler-aot SHARED aot.c helper.c)
    target_compile_definitions(mono-profiler-aot PRIVATE -DMONO_DLL_EXPORT)
    target_link_libraries(mono-profiler-aot PRIVATE monosgen-shared monoapi eglib_objects log)
    set_target_properties(mono-profiler-aot PROPERTIES OUTPUT_NAME mono-profiler-aot)
    install(TARGETS mono-profiler-aot LIBRARY)
  endif()
@jonathanpeppers
Copy link
Owner Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jonathanpeppers jonathanpeppers merged commit 8a25f80 into main May 21, 2025
1 check passed
@jonathanpeppers jonathanpeppers deleted the net10.0 branch May 21, 2025 16:05
jonathanpeppers added a commit to dotnet/maui that referenced this pull request May 21, 2025
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
jonathanpeppers added a commit to dotnet/maui that referenced this pull request May 21, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants