From bb52acc8b7ad073068c9a2dc656d4fecf935d710 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Tue, 16 Jun 2026 18:16:18 +0200 Subject: Adds final tweaks to data client/server --- arch/v1/arch_plots.cpp | 59 -------------------------------------------------- arch/v1/plots.cpp | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 59 deletions(-) delete mode 100644 arch/v1/arch_plots.cpp create mode 100644 arch/v1/plots.cpp (limited to 'arch/v1') diff --git a/arch/v1/arch_plots.cpp b/arch/v1/arch_plots.cpp deleted file mode 100644 index d9147cb..0000000 --- a/arch/v1/arch_plots.cpp +++ /dev/null @@ -1,59 +0,0 @@ -std::array g_arch_traces = std::to_array>({ -#define INST(core, pref, index, label, mnemonic, symbol) \ - {#label "_" #pref "_" #core, #label}, -#define FOR_CORE(i) \ - {"wmb0_" #i, "wmb0_" #i}, \ - {"wmb1_" #i, "wmb1_" #i}, \ - {"wdea_" #i, "wdea_" #i}, \ - INST_SET(i, pop) \ - INST_SET(i, exe) \ - INST_SET(i, wrt) - FOR_CORES -#undef FOR_CORE -#undef INST -}); - -std::array g_arch_traces_heatmaps = std::to_array>({ -#define FOR_CORE(i) \ - {"wev_" #i, "wev_" #i}, \ - {"xev_" #i, "xev_" #i}, - FOR_CORES -#undef FOR_CORE -}); - -std::array g_arch_plots = std::to_array({ - {"wevs", "general", { -#define FOR_CORE(i) "wmb0_" #i, "wmb1_" #i, "wdea_" #i, - FOR_CORES -#undef FOR_CORE - }}, -}); - -std::array g_arch_plots_stacked = std::to_array({ -#define INST(core, pref, index, label, mnemonic, symbol) \ - #label "_" #pref "_" #core, -#define FOR_CORE(i) \ - {"ipop%_" #i, "population", { INST_SET(i, pop) }}, - FOR_CORES -#undef FOR_CORE -#define FOR_CORE(i) \ - {"iexe%_" #i, "population", { INST_SET(i, exe) }}, - FOR_CORES -#undef FOR_CORE -#define FOR_CORE(i) \ - {"iwrt%_" #i, "population", { INST_SET(i, wrt) }}, - FOR_CORES -#undef FOR_CORE -#undef INST -}); - -std::array g_arch_plots_heatmaps = std::to_array({ -#define FOR_CORE(i) \ - {"wev_" #i, "heatmaps", "wev_" #i}, - FOR_CORES -#undef FOR_CORE -#define FOR_CORE(i) \ - {"xev_" #i, "heatmaps", "xev_" #i}, - FOR_CORES -#undef FOR_CORE -}); diff --git a/arch/v1/plots.cpp b/arch/v1/plots.cpp new file mode 100644 index 0000000..d9147cb --- /dev/null +++ b/arch/v1/plots.cpp @@ -0,0 +1,59 @@ +std::array g_arch_traces = std::to_array>({ +#define INST(core, pref, index, label, mnemonic, symbol) \ + {#label "_" #pref "_" #core, #label}, +#define FOR_CORE(i) \ + {"wmb0_" #i, "wmb0_" #i}, \ + {"wmb1_" #i, "wmb1_" #i}, \ + {"wdea_" #i, "wdea_" #i}, \ + INST_SET(i, pop) \ + INST_SET(i, exe) \ + INST_SET(i, wrt) + FOR_CORES +#undef FOR_CORE +#undef INST +}); + +std::array g_arch_traces_heatmaps = std::to_array>({ +#define FOR_CORE(i) \ + {"wev_" #i, "wev_" #i}, \ + {"xev_" #i, "xev_" #i}, + FOR_CORES +#undef FOR_CORE +}); + +std::array g_arch_plots = std::to_array({ + {"wevs", "general", { +#define FOR_CORE(i) "wmb0_" #i, "wmb1_" #i, "wdea_" #i, + FOR_CORES +#undef FOR_CORE + }}, +}); + +std::array g_arch_plots_stacked = std::to_array({ +#define INST(core, pref, index, label, mnemonic, symbol) \ + #label "_" #pref "_" #core, +#define FOR_CORE(i) \ + {"ipop%_" #i, "population", { INST_SET(i, pop) }}, + FOR_CORES +#undef FOR_CORE +#define FOR_CORE(i) \ + {"iexe%_" #i, "population", { INST_SET(i, exe) }}, + FOR_CORES +#undef FOR_CORE +#define FOR_CORE(i) \ + {"iwrt%_" #i, "population", { INST_SET(i, wrt) }}, + FOR_CORES +#undef FOR_CORE +#undef INST +}); + +std::array g_arch_plots_heatmaps = std::to_array({ +#define FOR_CORE(i) \ + {"wev_" #i, "heatmaps", "wev_" #i}, + FOR_CORES +#undef FOR_CORE +#define FOR_CORE(i) \ + {"xev_" #i, "heatmaps", "xev_" #i}, + FOR_CORES +#undef FOR_CORE +}); -- cgit v1.2.1