This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Runtime statistics
- To: sydbarrett at home dot com
- Subject: Re: Runtime statistics
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 10 Mar 2000 11:54:31 +0100
- CC: gcc at gcc dot gnu dot org
- References: <005401bf8a52$05356540$02670618@chstfld1.va.home.com>
> Does GCC have any facilities to collect runtime information (such as
> branching statistics) that can be applied to future compilations? If
> not, has anyone expressed any interest in adding it? This is something
> that could allow us to squeeze a few % more speed from executables. The
> best thing to do would be to make this part of the debug/symbol
> information, so that it can be stripped from final compiles (once the
> info has been used). We don't want .exe's being larger than they have
> to be.
Please have a look at the -pg, -fprofile-arcs, -ftest-coverage
options. They modify the generated code, so you'll have to perform the
profiling separately.
Regards,
Martin