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:
parent
d7e4ea9dea
commit
537f392e1d
2 changed files with 11 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Add table
Reference in a new issue