Giter Club home page Giter Club logo

erlubi's Introduction

Erlang Visualizer using Ubigraph

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 erlubi from github git clone git://github.com/krestenkrab/erlubi.git
  • Compile erlubi using ./rebar get-deps; ./rebar compile
  • Run erlang with -pa erlubi/ebin -pa erlubi/deps/xmlrpc/ebin on 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!

Using erlubi

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.

Contribute

The code is available under APACHE LICENSE, you're free to clone, fix and add features.

erlubi's People

Contributors

abolibibelot avatar krestenkrab avatar syl20bnr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.