25#define U_LIVE_STATS_NAME_COUNT (16)
32#define U_LIVE_STATS_VALUE_COUNT (1024)
82u_ls_ns_get_and_reset(
struct u_live_stats_ns *uls, uint64_t *out_median, uint64_t *out_mean, uint64_t *out_worst);
#define U_LIVE_STATS_NAME_COUNT
Number of chars for the name of the live stats.
Definition u_live_stats.h:25
#define U_LIVE_STATS_VALUE_COUNT
Max number of values that can be put into the trackers.
Definition u_live_stats.h:32
static bool u_ls_ns_add(struct u_live_stats_ns *uls, uint64_t value)
Add a value to the live stats struct, returns true if the struct is full either before or after addin...
Definition u_live_stats.h:60
Struct to do live statistic tracking and printing of nano-seconds values, used by amongst other the c...
Definition u_live_stats.h:41
uint32_t value_count
Number of values currently in struct.
Definition u_live_stats.h:46
char name[(16)]
Small name used for printing.
Definition u_live_stats.h:43
uint64_t values[(1024)]
The values that will be used to calculate statistics.
Definition u_live_stats.h:49
Helper struct to hold a function pointer and data pointer.
Definition u_pretty_print.h:102
Pretty printing various Monado things.
Header holding common defines.
#define ARRAY_SIZE(a)
Array size helper.
Definition xrt_compiler.h:59