| Liboil Reference Manual |
|---|
liboilprofile —
#define OIL_PROFILE_HIST_LENGTH struct OilProfile; #define oil_profile_stamp () unsigned long oil_profile_stamp_gtod (void); void oil_profile_init (OilProfile *prof); void oil_profile_stop_handle (OilProfile *prof); void oil_profile_get_ave_std (OilProfile *prof, double *ave_p, double *std_p); #define oil_profile_start (x) #define oil_profile_stop (x)
struct OilProfile {
unsigned long start;
unsigned long stop;
unsigned long min;
unsigned long last;
unsigned long total;
int n;
int hist_n;
unsigned long hist_time[OIL_PROFILE_HIST_LENGTH];
int hist_count[OIL_PROFILE_HIST_LENGTH];
};
void oil_profile_get_ave_std (OilProfile *prof, double *ave_p, double *std_p);
| prof : | |
| ave_p : | |
| std_p : |
| << liboilparameter | liboilprototype >> |