etop(3)
β¨ etop π
okay bestie, so this is etop β it's the Erlang module definition situation, and honestly it's giving iconic. buckle up π
πΈ NAME πΈ
etop β Erlang Top is a tool for presenting information about Erlang processes, and it's basically the same vibe as what "top" shows you in UNIX. same energy, different node π¦
π«Ά DESCRIPTION π«Ά
You start Erlang Top with the provided scripts etop. That kicks off a hidden Erlang node that connects to the node you actually wanna measure. The node getting measured is specified with option -node. π―
Now listen β if the measured node has a different cookie than the default cookie for whoever's invoking the script, you gotta spell the cookie out explicitly with option -setcookie. no cookie, no connection, iykyk π
Under Windows, the batch file etop.bat can be used. Windows girlies, we see you π«Ά
When you run the etop script, you can pass config parameters as command-line options, like:
etop -node testnode@myhost -setcookie MyCookie
The following configuration parameters exist for the tool π
nodeβ the measured node.- Value:
atom/0 - Mandatory β οΈ (not optional, bestie, you NEED it)
- Value:
setcookieβ cookie to use for theetopnode. Must be same as the cookie on the measured node. πͺ- Value:
atom/0
- Value:
linesβ number of lines (processes) to display.- Value:
integer/0 - Default:
10
- Value:
intervalβ time interval (in seconds) between each update of the display. β°- Value:
integer/0 - Default:
5
- Value:
accumulateβ iftrue, the execution time and reductions are accumulated.- Value:
boolean/0 - Default:
false
- Value:
sortβ identifies what information to sort by. π€- Value:
runtime | reductions | memory | msg_q - Default:
runtime(reductionsiftracing=off)
- Value:
tracingβetopuses the Erlang trace facility, and thus no other tracing is possible on the measured node whileetopis running, unless this option is set tooff. Also helpful if theetoptracing causes too high load on the measured node. With tracingoff, runtime is not measured. π- Value:
on | off - Default:
on
- Value:
For details about Erlang Top, see the User's Guide. π
π₯ FUNCTIONS π₯
config(Key, Value) -> ok | {error, Reason}
when
Key :: lines | interval | accumulate | sort,
Value :: term(),
Reason :: term().
Changes the configuration parameters of the tool during runtime, mid-session, no restart needed. The allowed parameters are lines, interval, accumulate, and sort. glow-up your display on the fly β¨
dump(File) -> ok | {error, Reason}
when File :: file:filename_all(), Reason :: term().
Dumps the current display to a text file. screenshot but for text, periodt πΈ
help() -> ok.
Displays the help of etop and its options. when you're lost, just ask π₯Ί
start() -> ok.
Starts etop. Notice that etop is preferably started with the etop script. like yes you can do it this way but the script is the main character π
start(Options) -> ok
when
Options :: [{Key, Value}],
Key :: atom(),
Value :: term().
Starts etop. To view the possible options, use help/0. π§
stop() -> stop | not_started.
Terminates etop. bye bestie π
ngl, remember that wholetracingcaveat β no other tracing on the measured node whileetopis running unless you set it tooff, and with tracing off you literally don't get runtime measured. fr fr, no cap. β οΈ
okay and that's the whole page, mwah π this was written by Ericsson AB and it's from observer 2.19 β etop(3), slay, go forth and measure ur processes π¦π
π¦ where this page comes from
- nixos 26.05: erlang 29.1.2
- nixpkgs unstable: erlang 29.1.2
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms