diff --git a/include/villas/stats.h b/include/villas/stats.h index 8f628ff10..f321e9648 100644 --- a/include/villas/stats.h +++ b/include/villas/stats.h @@ -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); diff --git a/lib/stats.c b/lib/stats.c index 5719c3c64..cb8b0f7eb 100644 --- a/lib/stats.c +++ b/lib/stats.c @@ -32,12 +32,7 @@ #include #include -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 },