GtBridge.Supervision (gt_bridge v0.19.2)

Copy Markdown View Source

I expose process-supervision introspection to GT.

tree/1 walks a supervisor's children recursively into a nested map for Mondrian-tree rendering; supervisor?/1 judges whether a process is a supervisor from its state shape.

Summary

Functions

I return true when the process is a supervisor (Supervisor or DynamicSupervisor), judged from its state shape.

I return a nested supervision tree starting from a PID.

Functions

supervisor?(name)

@spec supervisor?(GenServer.name()) :: boolean()

I return true when the process is a supervisor (Supervisor or DynamicSupervisor), judged from its state shape.

tree(pid)

@spec tree(pid()) :: map()

I return a nested supervision tree starting from a PID.

Each node is a map with :pid, :name, :module, :supervisor, :children, :queue, and :status. Large worker pools appear as-is — GT collapses them during rendering.