dotnet-trace flamegraph displays '?!?' instead of method names for my code
I have a maui blazored app.
When I build app for Android platform with Debug configuration and collect startup trace, then I can see flamegraph with readable method names by uploading speedsope.json file to https://www.speedscope.app/
When I build app for Android platform with Release configuration and collect startup trac, then flamegraph contains '?!?' instead of method names (mostly for my code)
I build app with command dotnet build -f net7.0-android -t:Run -c Release -p:AndroidEnableProfiler=true
I collect trace with command dotnet-trace collect --diagnostic-port /tmp/maui-app --format speedscope
Here is how flamegraph looks like.
Why are method names missing and what can be done to fix it?