ides_static (ides v0.4.2)
View SourceSummary
Functions
Return the ancestor supervisor chain for a module, from root to direct parent.
Resolve a target string to a module, matching a module name or child-spec id.
Look up a module by its registered process name in the tree.
Render the supervision tree as indented ASCII, marking the target with *.
Render all root supervision trees as indented ASCII, with no target marker.
Return restart intensity policy for a supervisor module.
Return all modules that could cause the target module's process to be killed.
Like format/2 but writes to stdout.
Return sibling modules (other children of the same parent supervisor).
Build the static supervision tree from BEAM files.Returns tree roots and any warnings (unresolvable modules, dynamic children).
Types
-type intensity_info() :: #{max_restarts := non_neg_integer(), max_period := non_neg_integer()}.
-type static_process() :: supervisor_process() | worker_process().
-type supervisor_process() :: #{name := string(), module := module(), parent := module() | undefined, type := supervisor, strategy := ides:supervisor_strategy(), restart_type => ides:child_restart_type(), children := [static_process()], intensity := intensity_info()}.
-type t() :: #{tree := [static_process()], warnings := [static_warning()]}.
-type worker_process() :: #{name := string(), module := module(), parent := module() | undefined, type := worker, restart_type := ides:child_restart_type()}.
Functions
Return the ancestor supervisor chain for a module, from root to direct parent.
Resolve a target string to a module, matching a module name or child-spec id.
Look up a module by its registered process name in the tree.
Render the supervision tree as indented ASCII, marking the target with *.
Render all root supervision trees as indented ASCII, with no target marker.
-spec intensity_info(module(), t()) -> {ok, intensity_info()} | {error, not_found}.
Return restart intensity policy for a supervisor module.
Return all modules that could cause the target module's process to be killed.
Like format/2 but writes to stdout.
Return sibling modules (other children of the same parent supervisor).
-spec supervisor_tree([file:filename()]) -> {ok, #{tree := [static_process()], warnings := [static_warning()]}} | {error, static_error()}.
Build the static supervision tree from BEAM files.Returns tree roots and any warnings (unresolvable modules, dynamic children).