.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" @(#)pxp.1 6.6 (Berkeley) 6/2/91
.Nd Pascal execution profiler
can be used to obtain execution profiles of Pascal programs or
To produce an execution profile all that is necessary is to translate
the program specifying the
and to then issue the command
.Bd -literal -offset indent
A reformatted listing is output if none of the
.Bd -literal -offset indent
places a pretty-printed version of the program in `old.p' in the file `new.p'.
The use of the following options of
is discussed in sections 2.6, 5.4, 5.5 and 5.10 of the
.%T "Berkeley Pascal User's Manual" .
Print the bodies of all procedures and functions in the profile;
even those which were never executed.
Extract profile data from the file
Include declaration parts in a profile.
directives when reformatting a file;
is replaced by the reformatted contents of the specified
Fully parenthesize expressions.
Left justify all procedures and functions.
as each file is included;
in profiles, print a blank line at the top of the page.
Strip comments from the input text.
Print a table summarizing
Card image mode; only the first 72 characters of input lines
Suppress warning diagnostics.
Generate an execution profile.
are given the profile is of the entire program.
If a list of names is given, then only any specified
and the contents of any specified
files will appear in the profile.
spaces as the basic indenting unit.
.Bl -tag -width /usr/lib/how_pxp -compact
information on basic usage
.%T "Berkeley Pascal User's Manual"
For a basic explanation do
.Bd -literal -offset indent
Error diagnostics include
`No profile data in file'
option was not enabled to
`Not a Pascal system core file'
if the core is not from a
`Program and count data do not correspond'
if the program was changed after compilation, before profiling;
or if the wrong program is specified.
Does not place multiple statements per line.