liboilprofile.h File Reference

OIL_PROFILE_HIST_LENGTH

OIL_PROFILE_HIST_LENGTH

Internal definition of the number of histogram entries in OilProfile.

Typedef OilProfile

typedef struct _OilProfileOilProfile

oil_profile_stamp ( void )

IMPORT_C unsigned longoil_profile_stamp(void)

oil_profile_stamp:

Creates a timestamp based on a CPU-specific high-frequency counter, if available.

Returns: a timestamp

oil_profile_init ( OilProfile * )

IMPORT_C voidoil_profile_init(OilProfile *prof)

SECTION:liboilprofile :OilProfile : Measuring the length of time needed to execute Liboil functions. oil_profile_init: : the OilProfile structure

Initializes a profiling structure.

oil_profile_stop_handle ( OilProfile * )

IMPORT_C voidoil_profile_stop_handle(OilProfile *prof)

oil_profile_stop_handle: : the OilProfile structure

Handles post-processing of a single profiling run.

FIXME: need more info

oil_profile_get_ave_std ( OilProfile *, double *, double * )

IMPORT_C voidoil_profile_get_ave_std(OilProfile *prof,
double *ave_p,
double *std_p
)

oil_profile_get_ave_std: : the OilProfile structure : pointer to average : pointer to standard deviation

Calculates the average and standard deviation of a number of profiling runs, and places the results in the locations provided by and . Either and may be NULL, in which case the values will not be written.

oil_profile_start

oil_profile_start: : a pointer to an OilProfile structure

Starts a profiling run by obtaining a timestamp via oil_profile_stamp() and writing it into .

oil_profile_stop

oil_profile_stop: : a pointer to an OilProfile structure

Stops a profiling run by obtaining a timestamp via oil_profile_stamp() and writing it into . It then calls oil_profile_stop_handle() to handle post-processing of the profiling run.