aboutsummaryrefslogtreecommitdiff
path: root/data/plots.c
diff options
context:
space:
mode:
Diffstat (limited to 'data/plots.c')
-rw-r--r--data/plots.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/data/plots.c b/data/plots.c
new file mode 100644
index 0000000..211346f
--- /dev/null
+++ b/data/plots.c
@@ -0,0 +1,35 @@
+enum PlotType {
+ PLOT_LINES,
+};
+
+struct PlotDef {
+ const char *name;
+ const char *table;
+ enum PlotType plot_type;
+ const char **cols;
+};
+
+struct PlotDef g_general_plots_def[] = {
+ { .name = "cycl", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){
+#define FOR_CORE(i) "cycl_" #i,
+ FOR_CORES
+#undef FOR_CORE
+ }},
+ { .name = "mall", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){
+#define FOR_CORE(i) "mall_" #i,
+ FOR_CORES
+#undef FOR_CORE
+ }},
+ { .name = "pnum", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){
+#define FOR_CORE(i) "pnum_" #i,
+ FOR_CORES
+#undef FOR_CORE
+ }},
+ { .name = "ppop", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){
+#define FOR_CORE(i) "pfst_" #i, "plst_" #i,
+ FOR_CORES
+#undef FOR_CORE
+ }},
+};
+
+size_t g_general_plots_count = sizeof(g_general_plots_def) / sizeof(struct PlotDef);