[eventpipe] Use MonoImage:module_name when filename is NULL (#73018)
authorAleksey Kliger (λgeek) <aleksey@lambdageek.org>
Mon, 1 Aug 2022 19:45:35 +0000 (15:45 -0400)
committerGitHub <noreply@github.com>
Mon, 1 Aug 2022 19:45:35 +0000 (15:45 -0400)
commit73eb0cd2fb121a51199b46effd8b6de1f11e8a55
tree416150e11fcacd12b0577b9a0bfd8d59db208289
parent0000c1510e50d9716d73244a93a0e7bf1fbc16ce
[eventpipe] Use MonoImage:module_name when filename is NULL (#73018)

* [eventpipe] Use MonoImage:module_name when available, if MonoImage:filename is null

   When assemblies are bundled (for example in WASM), the filename field
   is set to NULL. The module name comes from the metadata Module table and is something like
   "Foo.dll" even if the assembly is loaded from a bundle or from
   Assembly.Load(byte[]), whereas image->name might be "data-0x00abcdef" for byte loads
src/mono/mono/eventpipe/ep-rt-mono.c