liboilprofile

liboilprofile —

Synopsis




#define     OIL_PROFILE_HIST_LENGTH
            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)

Description

Details

OIL_PROFILE_HIST_LENGTH

#define OIL_PROFILE_HIST_LENGTH 10


OilProfile

typedef struct {
  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];
} OilProfile;


oil_profile_stamp()

#define oil_profile_stamp() oil_profile_stamp_gtod()


oil_profile_stamp_gtod ()

unsigned long oil_profile_stamp_gtod        (void);

Returns :

oil_profile_init ()

void        oil_profile_init                (OilProfile *prof);

prof :

oil_profile_stop_handle ()

void        oil_profile_stop_handle         (OilProfile *prof);

prof :

oil_profile_get_ave_std ()

void        oil_profile_get_ave_std         (OilProfile *prof,
                                             double *ave_p,
                                             double *std_p);

prof :
ave_p :
std_p :

oil_profile_start()

#define     oil_profile_start(x)

x :

oil_profile_stop()

#define     oil_profile_stop(x)

x :