RFC: WIP: Framework for recording stats for linker phases
Nick Clifton
nickc@redhat.com
Tue Mar 11 10:30:50 GMT 2025
Hi Guys,
The attached patch is a work in progress that adds the ability to
record resource usage statistics for various phases of the linker's
operation.
The feature is enabled when the --stats command line option is used
but the data is only emitted if the --Map option is also used. I
choose this method as it keeps things simple, instead of adding even
more command line options.
I am not sure what phases should be recorded at the moment. I would
like to be able to drill down to things like reloc processing and
string merging, but I am also concerned about how to handle recording
data when multiple phases are active at the same time.
Anyway I am posting the code here in case anyone is interested and
wants to have a look. If you have any comments or suggestions please
do let me know.
Cheers
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld.phase.record.patch
Type: text/x-patch
Size: 8709 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250311/8905689f/attachment-0001.bin>
More information about the Binutils
mailing list