scope_profiler.tui
Interactive Textual browser for scope-profiler HDF5 files.
Classes
| Name | Description |
|---|---|
BrowserModel | Loaded data and navigation tree for one HDF5 profile. |
BrowserNode | One selectable item in the TUI navigation tree. |
Functions
| Name | Description |
|---|---|
build_browser_model | Load one HDF5 profile and build the selectable TUI navigation tree. |
build_parser | No description. |
main | No description. |
node_detail_text | Return a plain-text detail view for a selected navigation node. |
render_plot | Render one TUI plot node through the existing plotting functions. |
render_plotext_text | Render a Plotext chart while protecting its process-global state. |
BrowserModelclassdataclass#
class BrowserModel(file_path: Path, results: Any, root: BrowserNode)Loaded data and navigation tree for one HDF5 profile.
BrowserNodeclassdataclass#
class BrowserNode(label: str, kind: str, payload: dict[str, Any] = dict(), children: list[BrowserNode] = list())One selectable item in the TUI navigation tree.
build_browser_modelfunction#
def build_browser_model(file_path: str | Path) -> BrowserModelLoad one HDF5 profile and build the selectable TUI navigation tree.
build_parserfunction#
def build_parser() -> argparse.ArgumentParsermainfunction#
def main(argv: list[str] | None = None)node_detail_textfunction#
def node_detail_text(node: BrowserNode) -> strReturn a plain-text detail view for a selected navigation node.
render_plotfunction#
def render_plot(node: BrowserNode, *, filepath: str | Path | None = None, show: bool = False, settings: dict[str, Any] | None = None) -> str | NoneRender one TUI plot node through the existing plotting functions.
render_plotext_textfunction#
def render_plotext_text(node: BrowserNode, *, settings: dict[str, Any] | None = None, width: int = 100, height: int = 35) -> strRender a Plotext chart while protecting its process-global state.