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