1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

stats: expose stats_metrics table

This commit is contained in:
Steffen Vogel 2018-08-13 15:29:18 +02:00
parent d7e4ea9dea
commit 537f392e1d
2 changed files with 11 additions and 6 deletions

View file

@ -52,6 +52,13 @@ enum stats_id {
STATS_COUNT /**< Just here to have an updated number of statistics. */
};
struct stats_desc {
const char *name;
const char *unit;
const char *desc;
int hist_buckets;
};
struct stats_delta {
double values[STATS_COUNT];
@ -64,6 +71,9 @@ struct stats {
struct stats_delta *delta;
};
extern
struct stats_desc stats_metrics[];
int stats_lookup_format(const char *str);
int stats_init(struct stats *s, int buckets, int warmup);

View file

@ -32,12 +32,7 @@
#include <villas/node.h>
#include <villas/table.h>
static struct stats_desc {
const char *name;
const char *unit;
const char *desc;
int hist_buckets;
} stats_metrics[] = {
struct stats_desc stats_metrics[] = {
{ "skipped", "samples", "Skipped samples and the distance between them", 25 },
{ "proc_time", "seconds", "The processing time per sample within VILLAsnode", 25 },
{ "reordered", "samples", "Reordered samples and the distance between them", 25 },