This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Information on profiling
- From: Harald Servat <harald dot servat at bsc dot es>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 09 Nov 2009 12:56:44 +0100
- Subject: Information on profiling
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
first of all, I don't know if this is the appropriate list to ask
about this subject. If it's not, sorry for the noise.
Is there any pointer on how GCC deals to generate profiles (-p/-pg flags)?
In particular, I'm looking for information on (but not only):
* How GCC instruments user routines when compiling a C file using -p/-pg
* Where I can find the instrumentation code (i.e., the code called at
entry and exit points of user routines). Does it belongs to GCC package?
Or maybe belongs to a foreign package lib GLIBC?
* Where is the alarm set (signal SIGALRM or SIGPROF)?
Thank you very much.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkr4A3wACgkQwMPeuqUCg9yL3gCfRyrmRlAeYyNqVjMtTv9NEZfN
AT8AnijOlrale22w4ctrQvRu9//nEL7B
=G4Jl
-----END PGP SIGNATURE-----