etop (observer v2.17)
View SourceErlang Top is a tool for presenting information about Erlang processes similar to the information presented by "top" in UNIX.
Start Erlang Top with the provided scripts etop. This starts a hidden Erlang
node that connects to the node to be measured. The measured node is specified
with option -node. If the measured node has a different cookie than the
default cookie for the user who invokes the script, the cookie must be
explicitly specified with option -setcookie.
Under Windows, batch file etop.bat can be used.
When executing the etop script, configuration parameters can be specified as
command-line options, for example,
etop -node testnode@myhost -setcookie MyCookie. The following configuration
parameters exist for the tool:
node- The measured node.Value:
atom/0Mandatory
setcookie- Cookie to use for theetopnode. Must be same as the cookie on the measured node.Value:
atom/0lines- Number of lines (processes) to display.Value:
integer/0Default:
10interval- Time interval (in seconds) between each update of the display.Value:
integer/0Default:
5accumulate- Iftrue, the execution time and reductions are accumulated.Value:
boolean/0Default:
falsesort- Identifies what information to sort by.Value:
runtime | reductions | memory | msg_qDefault:
runtime(reductionsiftracing=off)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 tracing off, runtime is not measured.Value:
on | offDefault:
on
For details about Erlang Top, see the User's Guide.
Summary
Functions
Changes the configuration parameters of the tool during runtime. Allowed
parameters are lines, interval, accumulate, and sort.
Dumps the current display to a text file.
Displays the help of etop and its options.
Starts etop. Notice that etop is preferably started with the etop script.
Starts etop. To view the possible options, use help/0.
Terminates etop.
Functions
-spec 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. Allowed
parameters are lines, interval, accumulate, and sort.
-spec dump(File) -> ok | {error, Reason} when File :: file:filename_all(), Reason :: term().
Dumps the current display to a text file.
-spec help() -> ok.
Displays the help of etop and its options.
-spec start() -> ok.
Starts etop. Notice that etop is preferably started with the etop script.
Starts etop. To view the possible options, use help/0.
-spec stop() -> stop | not_started.
Terminates etop.