aboutsummaryrefslogtreecommitdiff
path: root/data/plots.c
blob: 211346f592b550b47ae956775f4e8742e04f28b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);