[PATCH v3] gprof: only process line numbers for intersection of vmas and histograms
H.J. Lu
hjl.tools@gmail.com
Sun Mar 9 15:40:10 GMT 2025
On Sat, Mar 8, 2025 at 7:17 PM Richard Allen <rsaxvc@gmail.com> wrote:
>
> > Here is the patch to delay loading the symbol table until its first use.
> > Does it work for you?
>
> I changed core_create_line_syms() to call get_symtab_direct()
> to fix runaway recursion and stack overflow.
Fixed it and core_create_syms_from.
> I ran gprof with small gmon file against the Linux kernel debug symbols:
>
> Before: 55 minutes.
> After: ~8 seconds.
>
> Also, I'm not sure if it is enough for core_create_line_syms() to check
> only the histograms for symbols. Do you think we'll also need to lookup
> symbols for basic-block and call-graph addresses?
How can we get these symbols?
>
Here is the v3 patch.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-0001-gprof-only-process-line-numbers-for-intersection-.patch
Type: text/x-patch
Size: 39539 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250309/a3073837/attachment-0001.bin>
More information about the Binutils
mailing list