I have been wondering if the use of explicit template instantiation can help reduce the time that it takes the debugger to load binaries. Something similar to reducing link time by the same mechanisms.
In the same vein, are there any ways to measure this? I can use readelf -e
to see the size of the debuginfo, like
[33] .debug_info PROGBITS 0000000000000000 048d175c
000000000583f7f3 0000000000000000 0 0 1
Is there anything finer grained (without having all of the gory details)?
For info, this is with GCC and GDB on Linux (RHEL 6.6).