#include "system.h"
#include <rpmsw.h>
#include "debug.h"
Include dependency graph for rpmsw.c:
Go to the source code of this file.
Functions | |
rpmsw | rpmswNow (rpmsw sw) |
Return benchmark time stamp. | |
static rpmtime_t | tvsub (const struct timeval *etv, const struct timeval *btv) |
Return difference of 2 timeval stamps in micro-seconds. | |
rpmtime_t | rpmswDiff (rpmsw end, rpmsw begin) |
Return benchmark time stamp difference. | |
rpmtime_t | rpmswInit (void) |
Return benchmark time stamp overhead. | |
int | rpmswEnter (rpmop op, ssize_t rc) |
Enter timed operation. | |
rpmtime_t | rpmswExit (rpmop op, ssize_t rc) |
Exit timed operation. | |
rpmtime_t | rpmswAdd (rpmop to, rpmop from) |
Sum statistic counters. | |
rpmtime_t | rpmswSub (rpmop to, rpmop from) |
Subtract statistic counters. | |
Variables | |
static rpmtime_t | rpmsw_overhead = 0 |
static rpmtime_t | rpmsw_cycles = 1 |
static int | rpmsw_type = 0 |
static int | rpmsw_initialized = 0 |
Definition in file rpmsw.c.
|
Return benchmark time stamp difference.
Definition at line 119 of file rpmsw.c. References rpmop_s::begin, rpmsw_cycles, rpmsw_overhead, rpmsw_type, rpmsw_s::ticks, rpmsw_s::tv, tvsub(), and rpmsw_s::u. Referenced by rpmswExit(), and rpmswInit(). |
|
Return benchmark time stamp overhead.
Definition at line 176 of file rpmsw.c. References rpmsw_cycles, rpmsw_initialized, rpmsw_overhead, rpmsw_type, rpmswDiff(), and rpmswNow(). Referenced by rpmswNow(). |
|
Return benchmark time stamp.
Definition at line 80 of file rpmsw.c. References rpmsw_initialized, rpmsw_type, rpmswInit(), rpmsw_s::ticks, rpmsw_s::tv, and rpmsw_s::u. Referenced by rpmswEnter(), rpmswExit(), and rpmswInit(). |
|
Definition at line 22 of file rpmsw.c. Referenced by rpmswDiff(), and rpmswInit(). |
|
Definition at line 28 of file rpmsw.c. Referenced by rpmswInit(), and rpmswNow(). |
|
Definition at line 19 of file rpmsw.c. Referenced by rpmswDiff(), and rpmswInit(). |
|
Definition at line 25 of file rpmsw.c. Referenced by rpmswDiff(), rpmswInit(), and rpmswNow(). |