AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

PR {l) -ok -lk -h PR {l) Offset each line by k character positions (default is 0). The number of character positions per line is the sum of the width and offset. Set the length of a page to k lines (default is 66). Use the next argument as the header to be printed instead of the file name. -p Pause before beginning each page if the output is directed to a terminal (pr will ring the bell at the terminal and wait for a carriage return). -f Use form-feed character for new pages (default is to use a sequence of line-feeds). Pause before beginning the first page if the standard output is associated with a terminal. -r Print no diagnostic reports on failure to open files. -t Print neither the five-line identifying header nor the fiveline trailer normally supplied for each page. Quit printing after the last line of each file without spacing to the end of the page. -sc Separate columns by the single character c instead of by the appropriate number of spaces (default for c is a tab). EXAMPLES Print filel and file2 as a double-spaced, three-column listing headed by "file list": pr -3dh "file list" filel file2 Write filel on file2, expanding tabs to columns 10, 19, 28, 37, ... � pr -e9 -t file2 FILES /devftty• to suspend messages SEE ALSO cat(1). - 2-

PROF ( 1) PROF ( 1) NAME prof - display profile data SYNOPSIS prof [-tcan] [-ox] [-g] [-z] [-h] [-s] [-m mdata] [prog] DESCRIPTION Prof interprets the profile file produced by the monitor(3C) function. The symbol table in the object file prog (a.out by default) is read and correlated with the profile file (mon.out by default). For each external text symbol the percentage of time spent executing between the address of that symbol and the address of the next is printed, together with the number of times that function was called and the average number of milliseconds per call. The mutually exclusive options t, c, a, and n determine the type of sorting of the output lines: -t Sort by decreasing percentage of total time (default). -c Sort by decreasing number of calls. -a Sort by increasing symbol address. -n Sort lexically by symbol name. The mutually exclusive options o and x specify the printing of the address of each symbol monitored: -o Print each symbol address (in octal) along with the symbol name. -x Print each symbol address (in hexadecimal) along with the symbol name. The following options may be used in any combination: -g Include non-global symbols (static functions). -z Include all symbols in the profile range (see monitor(3C)), even if associated with zero number of calls and zero time. -h Suppress the heading normally printed on the report. (This is useful if the report is to be processed further.) -s Print a summary of several of the monitoring parameters and statistics on the standard error output. -m mdata Use file mdata instead of mon.out for profiling data. For the number of calls to a function to be tallied, the -p option of cc(l) must have been given when the file containing the function was compiled. This option to the cc command also arranges for the object file to include a special profiling start-up function that calls monitor(3C) at the beginning and end of execution. It is the call to monitor at the end of execution that causes the mon.out file to be written. Thus, only programs that call exit(2) or return from main will cause the mon.out file to be produced. FILES mon.out for profile a.out for namelist - 1-

PR {l)<br />

-ok<br />

-lk<br />

-h<br />

PR {l)<br />

Offset each line by k character positions (default is 0).<br />

The number of character positions per line is the sum of<br />

the width and offset.<br />

Set the length of a page to k lines (default is 66).<br />

Use the next argument as the header to be printed instead<br />

of the file name.<br />

-p Pause before beginning each page if the output is directed<br />

to a terminal (pr will ring the bell at the terminal and<br />

wait for a carriage return).<br />

-f Use form-feed character for new pages (default is to use a<br />

sequence of line-feeds). Pause before beginning the first<br />

page if the standard output is associated with a terminal.<br />

-r Print no diagnostic reports on failure to open files.<br />

-t Print neither the five-line identifying header nor the fiveline<br />

trailer normally supplied for each page. Quit printing<br />

after the last line of each file without spacing to the end<br />

of the page.<br />

-sc Separate columns by the single character c instead of by<br />

the appropriate number of spaces (default for c is a tab).<br />

EXAMPLES<br />

Print filel and file2 as a double-spaced, three-column listing<br />

headed by "file list":<br />

pr -3dh "file list" filel file2<br />

Write filel on file2, expanding tabs to columns 10, 19, 28, 37, ...<br />

�<br />

pr -e9 -t file2<br />

FILES<br />

/devftty• to suspend messages<br />

SEE ALSO<br />

cat(1).<br />

- 2-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!