OIL_PROFILE_HIST_LENGTH
Internal definition of the number of histogram entries in OilProfile.
typedef struct _OilProfile | OilProfile |
IMPORT_C unsigned long | oil_profile_stamp | ( | void | ) |
oil_profile_stamp:
Creates a timestamp based on a CPU-specific high-frequency counter, if available.
Returns: a timestamp
IMPORT_C void | oil_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.
IMPORT_C void | oil_profile_stop_handle | ( | OilProfile * | prof | ) |
oil_profile_stop_handle: : the OilProfile structure
Handles post-processing of a single profiling run.
FIXME: need more info
IMPORT_C void | oil_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: : 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: : 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.