diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2025-12-03 22:14:38 +0100 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2025-12-08 06:45:59 +0100 |
| commit | 0fb1497a62332e0db45f94b4f195cb37183678cb (patch) | |
| tree | 0926e7c04415e69e7ad5c105f79eb4625ae9145f /ui/curses | |
| parent | c7c5925d86fd3e36069ee3689b1c0a1f6df600f9 (diff) | |
Improve SQL handling & aggregate memory events (WIP)data_improvements
Diffstat (limited to 'ui/curses')
| -rw-r--r-- | ui/curses/ui.j2.c | 11 | ||||
| -rw-r--r-- | ui/curses/ui_vars.py | 7 |
2 files changed, 16 insertions, 2 deletions
diff --git a/ui/curses/ui.j2.c b/ui/curses/ui.j2.c index ddeaf3b..2158eeb 100644 --- a/ui/curses/ui.j2.c +++ b/ui/curses/ui.j2.c @@ -416,6 +416,17 @@ void ui_print_core(int l) { ui_ulx_field(++l, "pcur", g_cores[g_core].pcur); ui_ulx_field(++l, "psli", g_cores[g_core].psli); ui_ulx_field(++l, "ivpt", g_cores[g_core].ivpt); + + ++l; + + {% if arch_vars.core_fields|length %} + ui_line(false, ++l, PAIR_HEADER, A_BOLD, "ARCH SPECIFIC"); + {% for type, name, print in arch_vars.core_fields if print %} + {% if type == "uint64_t" %} + ui_ulx_field(++l, "{{ name }}", g_cores[g_core].{{ name }}); + {% endif %} + {% endfor %} + {% endif %} } // ---------------------------------------------------------------------------- diff --git a/ui/curses/ui_vars.py b/ui/curses/ui_vars.py index 4dfdc10..97d2c07 100644 --- a/ui/curses/ui_vars.py +++ b/ui/curses/ui_vars.py @@ -1,2 +1,5 @@ -flags = ["-lncurses", "-DNCURSES_WIDECHAR=1"] -includes = ["curses.h", "locale.h", "time.h"] +def gen_ui_vars(_): + return { + "flags": ["-lncurses", "-DNCURSES_WIDECHAR=1"], + "includes": ["curses.h", "locale.h", "time.h"], + } |
