mpickering / eventlog2html

Visualise eventlog events as a static webpage
Other
69 stars 16 forks source link

Passing the `-hi` RTS option elides the name of objects used from dependencies #163

Open tchoutri opened 1 year ago

tchoutri commented 1 year ago

I recently tried out eventlog2html with -hi as a run-time RTS option for a CLI tool of mine, switching from -hT, and the detailed view is most useful to me. Here is a before and an after:

Screenshot 2022-11-24 at 17-48-14 eventlog2html - Heap Profile


Screenshot 2022-11-24 at 17-50-35 eventlog2html - Heap Profile


PS:

One point that I must raise: The "LoC" field is incredibly nice to have, really a good thing to have. I can search for Flora-related objects and then order them by integrated size. Thanks a bunch!

Screenshot 2022-11-24 at 17-52-46 eventlog2html - Heap Profile

TeofilC commented 1 year ago

I think you need to recompile your dependencies passing the -finfo-table-map -fdistinct-constructor-tables GHC options to them as well.

This gets a bit tricky with boot packages. To get info tables for those I think you basically have to recompile GHC with some settings to pass those flags to boot packages (the hadrian flavour transformer is called ipe). This ticket tracks splitting out info-table maps so you wouldn't need to recompile boot libraries.

tchoutri commented 1 year ago

Ah, thank you @TeofilC !