dotnet / dotnet/runtime

[MulticoreJIT] Profile does not get generated on android

Open
#119,655 10 comments 0 reactions 0 assignees View on GitHub
area-TieredCompilation-coreclr os-android
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

### Description

I tried following a blog post to enable this feature on my Android App as it seems like it might potentially be helpful to improve initial JIT performance since AOT is not an option for my application structure.

https://devblogs.microsoft.com/dotnet/an-easy-solution-for-improving-app-launch-performance/

### Reproduction Steps

1. Create android app project.
2. Add the specified lines of code at the earliest point in app startup:
```
ProfileOptimization.SetProfileRoot(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData));
ProfileOptimization.StartProfile("Startup.Profile");
```
3. Run the app
4. Observe that the profile is not generated at the specified path. (easiest to do using a rooted adb connection)

### Expected behavior

The profile to be generated at the requested location.

### Actual behavior

No profile file is created.

### Regression?

_No response_

### Known Workarounds

_No response_

### Configuration

Tested both using .NET 8 and latest .NET 10 RC.

### Other information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.