dotnet-trace flamegraph displays '?!?' instead of method names for my code

Dmitry Filippov 0 Reputation points
2023-04-09T22:00:10.1666667+00:00

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.User's image

Why are method names missing and what can be done to fix it?

Developer technologies .NET .NET MAUI
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.