==> include/mesh/top_ui_programs.h <==1/* @ajax/mesh-top-ui-programs: mesh-top's Programs tab (crates/mesh-top src/ui.rs, "2 programs"):
2 * one program table per machine (kind, state, placement, nodes, rates, task-time quantiles, the
3 * CPU executors' pid, CPU and RSS, PTX hash), the selected program's view pane (counters, manifest
4 * fields, a hexdump of its snap bytes), the flame chart of the last 100 ms of trace, and the log. */
5#ifndef MESH_TOP_UI_PROGRAMS_H
6#define MESH_TOP_UI_PROGRAMS_H
7
8#include "mesh/top_ui_kit.h"
9
10/* The flame chart's window. */
11#define MT_FLAME_NS 100000000u
12
13/* A program's placement cell: doom's `place` mode, else the fleet scheduler's (`all`, `0,2`,
14 * `pin 1`, `2>1` while it migrates). */
15tui_table_cell mt_place_cell(mt_frame *f, const mt_section *p, uint32_t sched);
16void mt_draw_programs(mt_frame *f, tui_rect area, const mt_app *app, mt_instant now);
17
18#endif