Skip to content

Dumping AOT Profile Methods requires something in either WasmShellAOTProfileExcludedMethods or MonoRuntimeMixedModeExcludedAssembly #1007

Closed

Description

@clairernovotny

Current behavior 🐛

When setting <WasmShellGenerateAOTProfileDebugList>true</WasmShellGenerateAOTProfileDebugList>, the AOTProfile.*.txt files are not created if neither MonoRuntimeMixedModeExcludedAssembly nor WasmShellAOTProfileExcludedMethods are set. This is unexpected as I'd expect to get the AOT Profile debug list regardless.

Expected behavior 🎯

Setting WasmShellGenerateAOTProfileDebugList to true should generate the AOTProfile.*.txt files regardless of other settings.

How to reproduce it (as minimally and precisely as possible) 🔬

You can see that the only place TryDumpProfileMethods are called are within an if statement that checks for any items in those aforementioned parameters.

TryDumpProfileMethods(profile, "AOTProfileDump.Original.txt");

TryDumpProfileMethods(profile, "AOTProfileDump.Filtered.txt");

Workaround 🛠️

Add a dummy value, such as <WasmShellAOTProfileExcludedMethods>Dummy</WasmShellAOTProfileExcludedMethods>

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

WebAssembly

Uno.Sdk version (and other relevant versions) 📦

6.4.31 / Bootstraper 10.0.13

IDE version 🧑‍💻

No response

Anything else we need to know? 💬

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions