[PATCH 6/6] gprof: only process line numbers for intersection of vmas and histograms
Sam James
sam@gentoo.org
Thu Mar 6 03:54:24 GMT 2025
Richard Allen <rsaxvc@gmail.com> writes:
Hi!
> Some programs like RTOS firmware may have a large number of symbols.
>
> By loading the histograms before loading symbols, we can look up
> only the line numbers that were captured in the histogram file,
> which reduces processing time for such a firmware from ~2 minutes
> to ~2 seconds.
>
> Signed-off-by: Richard Allen <rsaxvc@gmail.com>
This seems to regress glibc's gmon tests
(https://sourceware.org/PR32764):
tst-gmon-gprof.test-result:FAIL: gmon/tst-gmon-gprof
tst-gmon-pie-gprof.test-result:FAIL: gmon/tst-gmon-pie-gprof
tst-gmon-static-gprof.test-result:FAIL: gmon/tst-gmon-static-gprof
tst-gmon-static-pie-gprof.test-result:FAIL: gmon/tst-gmon-static-pie-gprof
Could you take a look? Thanks.
More information about the Binutils
mailing list