ides_prettypr (ides v0.4.2)

View Source

Prettypr-based formatting for ides supervision trees.

Summary

Functions

Render the supervision tree as indented ASCII text using prettypr. The target process is marked with *. Indentation is 4 spaces per level.

Like format/2 but writes the rendered tree to stdout.

Functions

format(TargetPid, Tree)

-spec format(TargetPid :: pid(), Tree :: ides_family:process()) -> iolist().

Render the supervision tree as indented ASCII text using prettypr. The target process is marked with *. Indentation is 4 spaces per level.

Output is byte-identical to ides_printer:format/2.

print(TargetPid, Tree)

-spec print(TargetPid :: pid(), Tree :: ides_family:process()) -> ok.

Like format/2 but writes the rendered tree to stdout.