[erlang-questions] How is graph like this generated?
Fernando 'Brujo' Benavides
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…
You will see stuff like this going around: http://g.recordit.co/9KvFR7FRqN.gif <http://g.recordit.co/9KvFR7FRqN.gif>
Fernando "Brujo" Benavides
> 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.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions