I can get a .mprof capture off the device, but when I try to load this in Memory Profiler 2 (running that on Windows), it says it can’t find the symbols. How might I solve that?
ok, it’s not documented anywhere, but by looking through the source i figured it out. you need to enable dSYM and crash symbols:
[/Script/IOSRuntimeSettings.IOSRuntimeSettings]
bGenerateCrashReportSymbols=True
bGeneratedSYMFile=True
then you need to put the Binaries/IOS/Foo.udebugsymbols file in the same folder as the mprof file when loading into MemoryProfiler2. TADA!
oh, you also need:
bGeneratedSYMBundle=True
bGeneratedSYMBundle
should not be necessary - it causes IOSToolChain
to zip up the dSYM folder, which takes a while. As-is, without it though, the dSYM will be generated as “flat” and DsymExporter won’t work. I edited IOSToolChain.cs
locally to not pass the -f flag to dysmutil, so then DsymExporter works without the huge ZIP step.