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