This is a simple visualizer for erlang systems using Ubigraph.
To use,
- Download the Ubigraph server from ubietylab.net. Unpack it and just run the command line tool
bin/ubigraph_server. A black window will appear. - Grab a copy of
erlubifrom githubgit clone git://github.com/krestenkrab/erlubi.git - Compile
erlubiusing./rebar get-deps; ./rebar compile - Run erlang with
-pa erlubi/ebin -pa erlubi/deps/xmlrpc/ebinon the command line - (alternatively, you can instead directly type
code:add_pathsa(["erlubi/ebin","erlubi/deps/xmlrpc/ebin"])inside the shell) - Launch the visualizer/tracer using
erlubi_tracer:run()inside your erlang shell.
Now erlubi_tracer will first build a structure corresponding to present processes in your VM, and then install erlang trace hooks to receive notifications of new Erlang processes and links being created.
Enjoy!
You can also use erlubi for your own visualizations in Erlang.
- Run
erlubi:start() - Create vertex:
{ok, Vertex} = erlubi:vertex() - Create edge:
{ok, Edge} = erlubi:edge(Vertex1, Vertex2) - Set attributes:
Vertex:shape(sphere), Edge:stroke(dashed) - Clear the graph space:
erlubi:clear()
See src/erlubi_edge.erl and src/erlubi_vertex.erl for more attributes to set.
The code is available under APACHE LICENSE, you're free to clone, fix and add features.