rpm 4.19.0
The RPM Package Manager
|
Statistics API. More...
Classes | |
struct | rpmsw_s |
struct | rpmop_s |
Typedefs | |
typedef unsigned long int | rpmtime_t |
typedef struct rpmsw_s * | rpmsw |
typedef struct rpmop_s * | rpmop |
Functions | |
rpmsw | rpmswNow (rpmsw sw) |
rpmtime_t | rpmswDiff (rpmsw end, rpmsw begin) |
rpmtime_t | rpmswInit (void) |
int | rpmswEnter (rpmop op, ssize_t rc) |
rpmtime_t | rpmswExit (rpmop op, ssize_t rc) |
rpmtime_t | rpmswAdd (rpmop to, rpmop from) |
rpmtime_t | rpmswSub (rpmop to, rpmop from) |
Statistics API.
Sum statistic counters.
to | result statistics |
from | operation statistics |
Return benchmark time stamp difference.
*end | end time stamp |
*begin | begin time stamp |
int rpmswEnter | ( | rpmop | op, |
ssize_t | rc | ||
) |
Enter timed operation.
op | operation statistics |
rc | -1 clears usec counter |
rpmtime_t rpmswExit | ( | rpmop | op, |
ssize_t | rc | ||
) |
Exit timed operation.
op | operation statistics |
rc | per-operation data (e.g. bytes transferred) |
rpmtime_t rpmswInit | ( | void | ) |
Return benchmark time stamp overhead.
Return benchmark time stamp.
*sw | time stamp |