et_viewer(3erl)
π NAME π
Okay so this is the et_viewer page from the Erlang Module Definition manual, aka et_viewer(3erl) β and itβs literally about displaying a sequence chart for trace events (messages/actions). Slay. β¨
πΈ DESCRIPTION πΈ
bestie, the original DESCRIPTION section is empty β itβs giving minimalist chic. The real tea is all in EXPORTS below. π«Ά
π EXPORTS π
π file(FileName) -> {ok, ViewerPid} | {error, Reason}
Types:
FileName() = string()
ViewerPid = pid()
Reason = term()
Start a new event viewer and a corresponding collector, then load them with trace events from a trace file. Very βopen the file, serve the chartβ energy. π
π¦ start() -> ok
Simplified start of a sequence chart viewer with global tracing activated.
Convenient to be used from the command line (erl -s et_viewer). Literally built for the command-line girlies. π₯
π start(Options) -> ok
Start of a sequence chart viewer without linking to the parent process. No strings attached, no parent link, just vibes. π
π start_link(Options) -> {ok, ViewerPid} | {error, Reason}
Types:
Options = [option() | collector_option()]
option() = {parent_pid, extended_pid()} | {title, term()} |
{detail_level, detail_level()} | {is_suspended, boolean()} |
{scale, integer()} | {width, integer()} | {height, integer()}
| {collector_pid, extended_pid()} | {event_order,
event_order()} | {active_filter, atom()} | {max_actors,
extended_integer()} | {trace_pattern,
et_collector_trace_pattern()} | {trace_port,
et_collector_trace_port()} | {trace_global,
et_collector_trace_global()} | {trace_client,
et_collector_trace_client()} | {dict_insert, {filter,
filter_name()}, event_filter_fun()} | {dict_insert,
et_collector_dict_key(), et_collector_dict_val()} |
{dict_delete, {filter, filter_name()}} | {dict_delete,
et_collector_dict_key()} | {actors, actors()} | {first_event,
first_key()} | {hide_unknown, boolean()} | {hide_actions,
boolean()} | {display_mode, display_mode()}
extended_pid() = pid() | undefined
detail_level() = min | max | integer(X) when X >=0, X =< 100
event_order() = trace_ts | event_ts
extended_integer() = integer() | infinity
display_mode() = all | {search_actors, direction(),
first_key(), actors()}
direction() = forward | reverse
first_key() = event_key()
actors() = [term()]
filter_name() = atom()
filter_fun() = fun(Event) -> false | true | {true, NewEvent}
Event = NewEvent = record(event)
ViewerPid = pid()
Reason = term()
Start a sequence chart viewer for trace events (messages/actions). Main character behavior, honestly. π
A filter_fun() takes an event record as sole argument and returns false | true | {true, NewEvent}.
If the collector_pid is undefined, a new et_collector will be started with the following parameter settings: parent_pid, event_order, trace_global, trace_pattern, trace_port, trace_max_queue, trace_client, dict_insert and dict_delete. The new et_viewer will register itself as an et_collector subscriber. Periodt. β¨
Default values are lowkey these:
parent_pidβself().titleβ"et_viewer".detail_levelβmax.is_suspendedβfalse.scaleβ2.widthβ800.heightβ600.collector_pidβundefined.event_orderβtrace_ts.active_filterβcollector.max_actorsβ5.actorsβ["UNKNOWN"].first_eventβfirst.hide_unknownβfalse.hide_actionsβfalse.display_modeβall.
π get_collector_pid(ViewerPid) -> CollectorPid
Types:
ViewerPid = pid()
CollectorPid = pid()
Returns the identifier of the collector process. Basically βbestie, whoβs the collector?β and it tells you. π«Ά
β stop(ViewerPid) -> ok
Types:
ViewerPid = pid()
Stops a viewer process. Bye bestie, the chart is closed. π
mwah π β and thatβs the cute sign-off from Ericsson AB, version et 1.6.5, on the et_viewer(3erl) page. ππ¦
π¦ where this page comes from
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u1 Β· Apache-2.0
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u4 Β· Apache-2.0
- ubuntu jammy: erlang-manpages 1:24.2.1+dfsg-1 Β· Apache-2.0
- ubuntu jammy: erlang-manpages 1:24.2.1+dfsg-1ubuntu0.8 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms