GPROF [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation
HP Pascal/iX Reference Manual
GPROF
GPROF is a System-Dependent HP-UX Option.
The compiler option GPROF causes the compiler to produce code that
profiles itself as it runs. You can analyze the profiles with the HP-UX
utility gprof.
Syntax
$GPROF {ON }$
{OFF}
Default OFF.
Location Anywhere before the keyword PROGRAM (illegal in
modules).
Example
$GPROF ON$
PROGRAM a;
PROCEDURE b;
BEGIN
END;
BEGIN
b;
END;
NOTE A program containing the GPROF compiler option must be linked with
the pc option -G.
MPE/iX 5.0 Documentation