Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

gprof

Code profiler (GNU)

Syntax:

gprof_variant options [executable [data-files...]] [> outfile]

Runs on:

QNX Neutrino, Linux, Microsoft Windows

Options:

The gprof_variant depends on the target platform, as follows:

Target platform: gprof_variant:
ARM ntoarm-gprof
MIPS ntomips-gprof
PowerPC ntoppc-gprof
SH4 ntosh-gprof
x86 ntox86-gprof

Description:

The gprof utility produces code-profiling data for an application compiled with the -p option to qcc (or the -pg option to gcc). This data is interpreted visually for you by the Application Profiler perspective in the QNX Momentics IDE.

For detailed documentation about gprof, see the the GNU website at http://www.gnu.org/.

Exit status:

0
Success.
not 0
An error occurred.

Contributing author:

GNU

See also:

gcc, qcc