profil (SunOS) profil (SunOS)
NAME
profil - Starts and stops execution profiling
SUN OS SYNOPSIS
int profil(
short *short_buffer,
int buffer_size,
void *offset( ),
int scale );
DIGITAL UNIX SYNOPSIS
void profil(
unsigned short *short_buffer,
unsigned int buffer_size,
void *offset,
unsigned int scale ); #include <sys/resource.h>
void profil(
struct profil_args *args,
int buffer_size,
-1,
unsigned long flags);
PARAMETERS
Points to an area of memory in the user address space. Its length (in
bytes) is given by the buffer_size parameter. Specifies the length (in
bytes) of the buffer. When offset is -1, indicat ing that the extended
profil format shown in the second synopsis above is in use, the buf‐
fer_size parameter indicates the number of profil_args
O
structures in the args array. Specifies the delta of program counter
start and buffer; for example, an offset of 0 (zero) implies that text
begins at 0. When offset is -1, the profil call is interpreted as a
call to profile multiple discontiguous address ranges, such as those in
an executable an d its shared libraries. In this type of profil call,
which has the format shown in the second synopsis above, the buf‐
fer_size parameter indicates the number of profil_args structures in
the args array. Specifies the mapping factor between the program
counter and short_buffer. When offset is -1, specifies an array of up
to 64 struct profil_args structures, each describing a single address
range in which profiling is to occu r. Specifies flags that modify the
behavior of a profil call that profiles multiple discontiguous address
ranges. This argument is reserved for future use
and should be 0.
DIFFERENCES
Changes in data-type declarations.
RELATED INFORMATION
Digital UNIX Functions:
profil(2) delim off
profil (SunOS)