This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to instrument a program using GCC
- From: "Diego Novillo" <dnovillo at google dot com>
- To: "Haifeng He" <hehaifeng2nd at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 17 Feb 2008 15:16:54 -0500
- Subject: Re: How to instrument a program using GCC
- References: <ab08258e0802151506t24ddae6du1a48b6be6768b8ae@mail.gmail.com>
On Fri, Feb 15, 2008 at 6:06 PM, Haifeng He <hehaifeng2nd@gmail.com> wrote:
> I would like to instrument to program to do a value profiling of all
> the variables in the program
See the documentation on -fprofile-generate and -fprofile-use in the
GCC documentation.
Diego.