https://github.com/eproxus/grapherl
Create graphs of Erlang systems and programs
https://github.com/eproxus/grapherl
erlang graphviz
Last synced: about 1 month ago
JSON representation
Create graphs of Erlang systems and programs
- Host: GitHub
- URL: https://github.com/eproxus/grapherl
- Owner: eproxus
- License: apache-2.0
- Created: 2010-09-29T17:43:46.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2023-06-19T14:31:51.000Z (almost 2 years ago)
- Last Synced: 2025-02-27T15:37:41.166Z (about 2 months ago)
- Topics: erlang, graphviz
- Language: Erlang
- Homepage:
- Size: 285 KB
- Stars: 90
- Watchers: 13
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- beamtoolbox - [erl
README
grapherl
========
Create graphs of Erlang systems and programs.Getting Started
---------------First, install graphviz. On Ubuntu:
$ sudo aptitude install graphviz
On OS X, download and install the [OS X version of graphviz][1] or use
[homebrew][2]:$ brew install graphviz
To compile grapherl, type:
$ make
or the equivalent `./rebar compile`.
To start a grapherl shell after compilation, type:
$ erl -pa ebin
Alternatively, compile a grapherl stand-alone executable by doing:
$ ./rebar escriptize
This will produce a `grapherl` executable in the root directory. Use
the flags `-h` or `--help` to see wich arguments it needs.Examples
--------
Here's some examples of using grapherl.The following two calls are equal. They will both generate
`my_app.png` in the current directory.Eshell V5.7.5 (abort with ^G)
1> grapherl:modules("/path/to/my_app", "my_app").
ok
2> grapherl:modules("/path/to/my_app/ebin", "my_app", [no_ebin]).
okFor example, if you have an Erlang release in the folder `my_node`,
you can create a application dependency graph in SVG format by doing
the following:Eshell V5.7.5 (abort with ^G)
1> grapherl:applications("/path/to/my_node/lib", "my_node", [{type, svg}]).
okThis will create `my_node.svg` in the current directory.
Tips
---If you're using Gnome under Linux, use the option `{open,
"gnome-open"}` to directly see the resulting image.If you're using OS X, use the option `{open, "open"}`.
Contribute
----------Should you find yourself using grapherl and have issues, comments or
feedback please [create an issue!][3]Patches are greatly appreciated!
[1]: http://www.pixelglow.com/graphviz/ "graphviz for OS X"
[2]: https://github.com/mxcl/homebrew "The missing package manager for OS"
[3]: http://github.com/eproxus/grapherl/issues "grapherl issue tracker"