06-29-2010
20,
0
Join Date: May 2008
Last Activity: 21 December 2010, 6:44 PM EST
Posts: 20
Thanks Given: 1
Thanked 0 Times in 0 Posts
How to measure g++ performance?
I am working on an application with some rather interesting build performance issues. If we build on Solaris/Linux x86/AMD64 the build is rather fast, but it takes more than five times as long on our Solaris Sparc servers (single-threaded builds on the workstations, but multi-threaded on the server!). We are looking to gather some information to find out where the major culprits are (eg precompilation, disk I/O, etc); personally, I suspect template instantiation to be the biggest issue.
How do we break-down the build process to get this kind of information? We use g++/gmake/GNU binutils. As far as I can tell, g++ does not have a convenient `output benchmarking information in xml format' option (the nerve!), so I am assuming we would need to kick-off a set of other applications at the start of the build then analyse their data later. I figure we could probably work out the analysis if only we knew what meters we need to be running (and what options to launch them with, when applicable). Can anyone advise?