What is the command line options to use Erlang etop to dump Erlang program information to a file? If this cannot be done in command line, can it be done in an escript?
This is what I found in my Makefile:
run_etop:
erl -name node@127.0.0.1 -setcookie cookie -pa ebin/ -detached -s app
erl -name etop@127.0.0.1 -noinput -s etop -s erlang halt -output text \
-setcookie cookie -interval 1 -lines 20 -accumulate true > etop.log
I start my application ( app
) on node@127.0.0.1
and then I start another node ( etop@127.0.0.1
) from which I connect to the first node and where I run etop.
To get list of etop options, try etop:help()
in erlang console.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.