Re: [PATCH v2] Add a trie to map quickly from address range to compilation unit.
From: Ian Rogers
Date: Sun May 19 2024 - 11:51:08 EST
On Sat, May 18, 2024 at 9:54 AM Steinar H. Gunderson <sesse@xxxxxxxxxx> wrote:
>
> On Sat, May 18, 2024 at 06:53:11PM +0200, Steinar H. Gunderson wrote:
> > When using perf to profile large binaries, _bfd_dwarf2_find_nearest_line()
> > becomes a hotspot, as perf wants to get line number information
> > (for inline-detection purposes) for each and every sample. In Chromium
> > in particular (the content_shell binary), this entails going through
> > 475k address ranges, which takes a long time when done repeatedly.
>
> I accidentally sent out an ancient patch anew; sorry, please ignore.
Presumably v1 should be reviewed?
Thanks,
Ian
> /* Steinar */