mirror of
https://github.com/wg/wrk
synced 2026-05-17 03:02:32 +08:00
22 lines
466 B
C
22 lines
466 B
C
#ifndef __STATS_H
|
|
#define __STATS_H
|
|
|
|
typedef struct {
|
|
int samples;
|
|
int index;
|
|
int limit;
|
|
uint64_t data[];
|
|
} stats;
|
|
|
|
stats *stats_alloc(int);
|
|
void stats_free(stats *);
|
|
void stats_record(stats *, uint64_t);
|
|
uint64_t stats_min(stats *);
|
|
uint64_t stats_max(stats *);
|
|
long double stats_mean(stats *);
|
|
long double stats_stdev(stats *stats, long double);
|
|
long double stats_within_stdev(stats *, long double, long double, uint64_t);
|
|
|
|
#endif /* __STATS_H */
|
|
|