[erlang-questions] How is graph like this generated?
Fernando 'Brujo' Benavides
fernando.benavides@REDACTED
Fri Jul 24 12:46:46 CEST 2015
Based on that great example, and the easter egg I recently found (et:phone_home/4,5), I created this example module: https://github.com/elbrujohalcon/witchcraft/blob/master/src/ufo.erl <https://github.com/elbrujohalcon/witchcraft/blob/master/src/ufo.erl>
To see it in action, do…
1> ufo:start().
2> ufo:run().
You will see stuff like this going around: http://g.recordit.co/9KvFR7FRqN.gif <http://g.recordit.co/9KvFR7FRqN.gif>
Cheers!
Fernando "Brujo" Benavides
about.me/elbrujohalcon
<http://about.me/elbrujohalcon?promo=email_sig>
> On Jul 24, 2015, at 06:13, Jesper Louis Andersen <jesper.louis.andersen@REDACTED> wrote:
>
>
> On Fri, Jul 24, 2015 at 9:54 AM, Leo Liu <sdl.web@REDACTED <mailto:sdl.web@REDACTED>> wrote:
> I wonder how those graphs are generated? Thanks.
>
> I think those graphs are generated by a tool. Either manually, or automatically. The have many names, one of which is "Sequence Diagrams" and another one being "Message Sequence Chart (MSC)". Usually there is specific meaning attached to different shapes in them, but the general rule is that time flows downwards and you can see the interaction between several agents.
>
> In Erlang, we have a tool for generating these, which is the `et` application (short for event tracer). It allows you to add dummy function calls into your application and then record what the application is doing, automatically generating a diagram for you. My post is somewhat old, but I still think it is applicable:
>
> http://jlouisramblings.blogspot.dk/2011/10/using-event-tracer-tool-set-in-erlang.html <http://jlouisramblings.blogspot.dk/2011/10/using-event-tracer-tool-set-in-erlang.html>
>
> That way, you can build diagrams automatically by attaching trace probes to the report_event function.
>
>
>
> --
> J.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150724/b6f29aa5/attachment.htm>
More information about the erlang-questions
mailing list