Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pxp(1) [bsd man page]

PXP(1)							      General Commands Manual							    PXP(1)

NAME
pxp - Pascal execution profiler SYNOPSIS
pxp [ -acdefjnstuw_ ] [ -23456789 ] [ -z [ name ... ] ] name.p DESCRIPTION
Pxp can be used to obtain execution profiles of Pascal programs or as a pretty-printer. To produce an execution profile all that is neces- sary is to translate the program specifying the z option to pi or pix, to execute the program, and to then issue the command pxp -z name.p A reformatted listing is output if none of the c, t, or z options are specified; thus pxp old.p > new.p places a pretty-printed version of the program in `old.p' in the file `new.p'. The use of the following options of pxp is discussed in sections 2.6, 5.4, 5.5 and 5.10 of the Berkeley Pascal User's Manual. -a Print the bodies of all procedures and functions in the profile; even those which were never executed. -c Extract profile data from the file core. -d Include declaration parts in a profile. -e Eliminate include directives when reformatting a file; the include is replaced by the reformatted contents of the specified file. -f Fully parenthesize expressions. -j Left justify all procedures and functions. -n Eject a new page as each file is included; in profiles, print a blank line at the top of the page. -s Strip comments from the input text. -t Print a table summarizing procedure and function call counts. -u Card image mode; only the first 72 characters of input lines are used. -w Suppress warning diagnostics. -z Generate an execution profile. If no names, are given the profile is of the entire program. If a list of names is given, then only any specified procedures or functions and the contents of any specified include files will appear in the profile. -_ Underline keywords. -d With d a digit, 2 <= d <= 9, causes pxp to use d spaces as the basic indenting unit. The default is 4. FILES
name.p input file name.i include file(s) pmon.out profile data core profile data source with -c /usr/share/pascal/how_pxpinformation on basic usage SEE ALSO
Berkeley Pascal User's Manual pi(1), px(1) DIAGNOSTICS
For a basic explanation do pxp Error diagnostics include `No profile data in file' with the c option if the z option was not enabled to pi; `Not a Pascal system core file' if the core is not from a px execution; `Program and count data do not correspond' if the program was changed after compilation, before profiling; or if the wrong program is specified. AUTHOR
William N. Joy BUGS
Does not place multiple statements per line. 3rd Berkeley Distribution PXP(1)

Check Out this Related Man Page

KGMON(8)						    BSD System Manager's Manual 						  KGMON(8)

NAME
kgmon -- generate a dump of the operating system's profile buffers SYNOPSIS
kgmon [-Bbhpr] [-M core] [-N system] DESCRIPTION
The kgmon utility is used when profiling the operating system. When no arguments are supplied, kgmon indicates the state of operating system profiling as running, off, or not configured. (see config(8)) If the -p flag is specified, kgmon extracts profile data from the operating system and produces a gmon.out file suitable for later analysis by gprof(1). The options are as follows: -B Resume the collection of high resolution profile data. -b Resume the collection of low resolution profile data. -h Stop the collection of profile data. -p Dump the contents of the profile buffers into a gmon.out file. -r Reset all the profile buffers. If the -p flag is also specified, the gmon.out file is generated before the buffers are reset. -M Extract values associated with the name list from the specified core instead of the default /dev/kmem. -N Extract the name list from the specified system instead of the default /boot/kernel/kernel. If neither -B nor -b nor -h is specified, the state of profiling collection remains unchanged. For example, if the -p flag is specified and profile data is being collected, profiling will be momentarily suspended, the operating system profile buffers will be dumped, and profiling will be immediately resumed. The profile buffers should be reset when the resolution of the profile data is changed. FILES
/boot/kernel/kernel the default system /dev/kmem the default memory DIAGNOSTICS
Users with only read permission on /dev/kmem cannot change the state of profiling collection. They can get a gmon.out file with the warning that the data may be inconsistent if profiling is in progress. SEE ALSO
gprof(1), config(8) HISTORY
The kgmon utility appeared in 4.2BSD. BSD
June 6, 1993 BSD
Man Page

Featured Tech Videos