Question

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?

No correct solution

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top