BeamConsoleWeb.Graph (beam_console v0.5.2)

Copy Markdown View Source

Converts normalized runtime snapshots into bounded Cytoscape graph data.

The payload keeps browser-facing values scalar and limits the visible process count so large runtimes remain navigable.

Summary

Functions

Returns the application ID with the largest observed supervision tree.

Builds a bounded graph payload around the selected or focused application.

Types

payload_options()

@type payload_options() :: [
  selected_id: String.t() | nil,
  focus_id: String.t() | nil,
  edge_preset: String.t(),
  selected_detail: map() | nil
]

Functions

default_focus_id(snapshot)

@spec default_focus_id(BeamConsole.Snapshot.t()) :: String.t() | nil

Returns the application ID with the largest observed supervision tree.

payload(snapshot, options \\ [])

@spec payload(BeamConsole.Snapshot.t(), payload_options()) :: map()

Builds a bounded graph payload around the selected or focused application.