2002 2007 Ericsson AB, All Rights Reserved The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Ericsson AB. etop Siri hansen 1 2002-03-27 PA1 etop.sgml
etop Erlang Top is a tool for presenting information about erlang processes similar to the information presented by "top" in UNIX.

etop should be started with the provided scripts etop and getop for text based and graphical presentation respectively. Under Windows the batch files etop.bat and getop.bat can be used.

All interaction with etop when running the graphical presentation should happen via the menus. For the text based presentation the functions described below can be used.

The following configuration parameters exist for etop.

node The measured node.

Value: atom()

Mandatory
setcookie Cookie to use for the etop node - must be the same as the cookie on the measured node.

Value: atom()
lines Number of lines (processes) to display.

Value: integer()

Default: 10
interval The time interval (in seconds) between each update of the display.

Value: integer()

Default: 5
accumulate If true the execution time and reductions are accumulated.

Value: boolean()

Default: false
sort Identifies what information to sort by.

Value: runtime | reductions | memory | msg_q

Default: runtime (reductions if tracing=off)
tracing etop uses the erlang trace facility, and thus no other tracing is possible on the measured node while etop is running, unless this option is set to off. Also helpful if the etop tracing causes too high load on the measured node. With tracing off, runtime is not measured.

Value: on | off

Default: on
config(Key,Value) -> Result Change tool's configuration Result = ok | {error,Reason} Key = lines | interval | accumulate | sort Value = term()

This function is used to change the tool's configuration parameters during runtime. The table above indicates the allowed values for each parameter.

dump(File) -> Result Dump the current display to a file. Result = ok | {error,Reason} File = string()

This function dumps the current display to a text file.

stop() -> stop Terminate etop

This function terminates etop.