[PATCH 6/6] gprof: only process line numbers for intersection of vmas and histograms
Richard Allen
rsaxvc@gmail.com
Sat Mar 8 02:43:25 GMT 2025
Thank you for reverting that H. J.
The issue is with my patch 6 is that call-graph parsing requires
the symbols to be loaded first. When I parsed the gmon file
first, the symbols were unavailable to cg_tally(), which runs while
the gmon file is parsed.
The OpenOCD gmon files I am working with only contain histogram
records, and no callgraph or basic-block records.
I'll look into how to better handle this as time allows. It might work
to parse the function symbols first, then the gmon file, then the
reduced set of line symbols only when requested.
Another approach might be loading the gmon file first, then the
symbols, then tallying the callgraph later.
-Richard
More information about the Binutils
mailing list