BSD 4_1_snap development
[unix-history] / usr / man / man1 / pxp.1
CommitLineData
e3758c96
C
1.TH PXP 1 4/8/79
2.UC
3.SH NAME
4pxp \- Pascal execution profiler
5.SH SYNOPSIS
6.B pxp
7[
8.B \-acdefjnstuw_
9] [
10.B \-23456789
11] [
12.B \-z
13[ name ... ] ] name.p
14.SH DESCRIPTION
15.I Pxp
16can be used to obtain execution profiles of Pascal programs or
17as a pretty-printer.
18To produce an execution profile all that is necessary is to translate
19the program specifying the
20.B z
21option to
22.I pi
23or
24.I pix,
25to execute the program,
26and to then issue the command
27.DT
28.PP
29 \fBpxp \-z\fR name.p
30.PP
31A reformatted listing is output if none of the
32.BR c ,
33.BR t ,
34or
35.B z
36options are specified;
37thus
38.PP
39 \fBpxp\fR old.p > new.p
40.PP
41places a pretty-printed version of the program in `old.p' in the file `new.p'.
42.PP
43The use of the following options of
44.I pxp
45is discussed in sections 2.6, 5.4, 5.5 and 5.10 of the
46.IR "Berkeley Pascal User's Manual" "."
47.TP 6
48.B \-a
49Print the bodies of all procedures and functions in the profile;
50even those which were never executed.
51.TP 6
52.B \-c
53Extract profile data from the file
54.IR core .
55.TP 6
56.B \-d
57Include declaration parts in a profile.
58.TP 6
59.B \-e
60Eliminate
61.B include
62directives when reformatting a file;
63the
64.B include
65is replaced by the reformatted contents of the specified
66file.
67.TP 6
68.B \-f
69Fully parenthesize expressions.
70.TP 6
71.B \-j
72Left justify all procedures and functions.
73.TP 6
74.B \-n
75Eject a new page
76as each file is included;
77in profiles, print a blank line at the top of the page.
78.TP 6
79.B \-s
80Strip comments from the input text.
81.TP 6
82.B \-t
83Print a table summarizing
84.B procedure
85and
86.B function
87call counts.
88.TP 6
89.B \-u
90Card image mode; only the first 72 characters of input lines
91are used.
92.TP 6
93.B \-w
94Suppress warning diagnostics.
95.TP 6
96.B \-z
97Generate an execution profile.
98If no
99.IR name \|s,
100are given the profile is of the entire program.
101If a list of names is given, then only any specified
102.BR procedure s
103or
104.BR function s
105and the contents of any specified
106.B include
107files will appear in the profile.
108.TP 6
109.B \-\_
110Underline keywords.
111.TP 6
112.BI \- d
113With
114.I d
115a digit, 2 \(<=
116.IR d ""
117\(<= 9,
118causes
119.I pxp
120to use
121.IR d ""
122spaces as the basic indenting unit.
123The default is 4.
124.SH FILES
125.DT
126name.p input file
127.br
128name.i include file(s)
129.br
130pmon.out profile data
131.br
132core profile data source with
133.B \-c
134.br
135/usr/lib/how_pxp information on basic usage
136.br
137.ne 8
138.SH "SEE ALSO"
139Berkeley Pascal User's Manual
140.br
141pi(1),
142px(1)
143.ne 5
144.SH DIAGNOSTICS
145For a basic explanation do
146.IP
147.DT
148.B pxp
149.PP
150Error diagnostics include
151`No profile data in file'
152with the
153.B c
154option if the
155.B z
156option was not enabled to
157.I pi;
158`Not a Pascal system core file'
159if the core is not from a
160.I px
161execution;
162`Program and count data do not correspond'
163if the program was changed after compilation, before profiling;
164or if the wrong program is specified.
165.SH AUTHOR
166William Joy
167.SH BUGS
168Does not place multiple statements per line.