Erlang 节点观察器视图模型(进程表/Supervisor 树/ETS/内存/端口面板;数据面纯核,MoUI 渲染位后置)
| 包 | 内容 |
|---|---|
| thy1016/moonbit-observer-ui | 视图模型(五面:进程/ETS/树/内存/端口)+Fetch/Render 注入位(唯一包) |
moon check --deny-warn && moon test --target nativepub(open) trait FetchPort {
async fn fetch_processes(self : Self) -> Array[ProcessRow] raise ViewError
async fn fetch_ets(self : Self) -> Array[EtsRow] raise ViewError
async fn fetch_sup_tree(self : Self, sup : String) -> SupNode raise ViewError
async fn fetch_memory(self : Self) -> MemorySummary raise ViewError
async fn fetch_ports(self : Self) -> Int raise ViewError
}pub(open) trait RenderPort {
fn render_processes(self : Self, rows : Array[ProcessRow]) -> Unit
fn render_ets(self : Self, rows : Array[EtsRow]) -> Unit
fn render_sup_tree(self : Self, tree : SupNode) -> Unit
fn render_memory(self : Self, mem : MemorySummary) -> Unit
fn render_ports(self : Self, count : Int) -> Unit
}pub(all) struct MemorySummary {
total : Int
processes : Int
ets : Int
atom : Int
}pub(all) struct ProcessRow {
pid : String
name : String
initial_call : String
memory_words : Int
message_queue_len : Int
}Install
Download zipErlang 节点观察器视图模型(进程表/Supervisor 树/ETS/内存/端口面板;数据面纯核,MoUI 渲染位后置)