ides_printer (ides v0.4.1)
View SourceFormatting and rendering for ides supervision trees.
Summary
Functions
Render the supervision tree as indented ASCII text.
The target process is marked with *. Indentation is 4 spaces
per level.
Like format/2 but also includes a section showing link
and monitor relationships below the tree.
Render the init analysis result as a human-readable summary.
Like format/2 but writes the rendered tree to stdout.
Like format_init_analysis/1 but writes to stdout.
Functions
-spec format(TargetPid :: pid(), Tree :: ides_family:process()) -> iolist().
Render the supervision tree as indented ASCII text.
The target process is marked with *. Indentation is 4 spaces
per level.
Rendering rules:
- Root supervisor:
name (strategy) - Supervisor child:
name (strategy, restart_type) - Worker child:
name (restart_type) - Target process: prefixed with
*
-spec format_detail(TargetPid :: pid(), Tree :: ides_family:process(), KillSources :: [ides_family:kill_source()]) -> iolist().
Like format/2 but also includes a section showing link
and monitor relationships below the tree.
KillSources is the result of ides_march:kill_graph_detail/1.
-spec format_init_analysis(Result :: ides_family:init_analysis_result()) -> iolist().
Render the init analysis result as a human-readable summary.
-spec print(TargetPid :: pid(), Tree :: ides_family:process()) -> ok.
Like format/2 but writes the rendered tree to stdout.
-spec print_detail(TargetPid :: pid(), Tree :: ides_family:process(), KillSources :: [ides_family:kill_source()]) -> ok.
-spec print_init_analysis(Result :: ides_family:init_analysis_result()) -> ok.
Like format_init_analysis/1 but writes to stdout.