eventlog2html icon indicating copy to clipboard operation
eventlog2html copied to clipboard

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

Open tchoutri opened this issue 2 years ago • 2 comments

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

tchoutri avatar Nov 24 '22 16:11 tchoutri

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.

TeofilC avatar Nov 24 '22 19:11 TeofilC

Ah, thank you @TeofilC !

tchoutri avatar Nov 25 '22 08:11 tchoutri