[MulticoreJIT] Profile does not get generated on 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
Assessment
This issue has not been assessed yet.