<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Based on that great example, and the easter egg I recently found (et:phone_home/4,5), I created this example module: <a href="https://github.com/elbrujohalcon/witchcraft/blob/master/src/ufo.erl" class="">https://github.com/elbrujohalcon/witchcraft/blob/master/src/ufo.erl</a><div class=""><br class=""></div><div class="">To see it in action, do…</div><div class="">1> ufo:start().</div><div class="">2> ufo:run().</div><div class=""><br class=""></div><div class="">You will see stuff like this going around: <a href="http://g.recordit.co/9KvFR7FRqN.gif" class="">http://g.recordit.co/9KvFR7FRqN.gif</a></div><div class=""><br class=""></div><div class="">Cheers!</div><div class=""><div class="">
<div class=""><table border="0" cellpadding="0" cellspacing="0" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 14px; font-family: proxima-nova-1, proxima-nova-2, Tahoma, Helvetica, Verdana, sans-serif; vertical-align: baseline; border-spacing: 0px; color: rgb(51, 51, 51); line-height: 18.2000007629395px; background-color: rgb(255, 255, 255);" class=""><tbody style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline;" class=""><tr style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline;" class=""><td style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-size: 0px; font-family: inherit; vertical-align: baseline; width: auto; height: 30px;" class=""> </td></tr><tr style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline;" class=""><td style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline; width: auto;" class=""><div style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline; line-height: 0;" class=""><a href="http://about.me/elbrujohalcon?promo=email_sig" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline; color: rgb(43, 130, 173); text-decoration: none; display: inline-block;" class=""><table border="0" cellpadding="0" cellspacing="0" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-size: 14px; font-family: inherit; vertical-align: baseline; border-spacing: 0px;" class=""><tbody style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline;" class=""><tr style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline;" class=""><td align="left" valign="top" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: top; width: auto; line-height: 1;" class=""><img alt="--" width="0" height="0" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline; display: block; width: 0px; height: 0px; overflow: hidden;" class=""><div style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-weight: bold; font-style: inherit; font-size: 18px; font-family: proxima-nova-1, Proxima-Nova, Helvetica, Arial, sans-serif; vertical-align: baseline; line-height: 1; color: rgb(51, 51, 51);" class="">Fernando "Brujo" Benavides</div><div style="margin: 3px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-size: 12px; font-family: proxima-nova-1, Proxima-Nova, Helvetica, Arial, sans-serif; vertical-align: baseline; color: rgb(43, 130, 173);" class=""><img alt="http://" width="0" height="0" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline; display: block; width: 0px; height: 0px; overflow: hidden;" class="">about.me/elbrujohalcon</div></td></tr><tr style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline;" class=""><td align="left" valign="top" style="margin: 0px; padding: 8px 0px 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: top; width: auto; line-height: 1;" class=""><div style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline; text-align: right; height: 4px; background-color: rgb(197, 208, 224);" class=""><img src="http://d13pix9kaak6wt.cloudfront.net/signature/colorbar.png" alt="" width="88" height="4" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline; float: right; display: block;" class=""></div></td></tr></tbody></table></a> </div></td></tr><tr style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-family: inherit; vertical-align: baseline;" class=""><td style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-size: 0px; font-family: inherit; vertical-align: baseline; width: auto; height: 20px;" class=""> </td></tr></tbody></table><div class=""><br class=""></div></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jul 24, 2015, at 06:13, Jesper Louis Andersen <<a href="mailto:jesper.louis.andersen@gmail.com" class="">jesper.louis.andersen@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Jul 24, 2015 at 9:54 AM, Leo Liu <span dir="ltr" class=""><<a href="mailto:sdl.web@gmail.com" target="_blank" class="">sdl.web@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I wonder how those graphs are generated? Thanks.</blockquote></div><br class=""></div><div class="gmail_extra">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.<br class=""><br class=""></div><div class="gmail_extra">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:<br class=""><br class=""><a href="http://jlouisramblings.blogspot.dk/2011/10/using-event-tracer-tool-set-in-erlang.html" class="">http://jlouisramblings.blogspot.dk/2011/10/using-event-tracer-tool-set-in-erlang.html</a><br class=""><br class=""></div><div class="gmail_extra">That way, you can build diagrams automatically by attaching trace probes to the report_event function.<br class=""><br class=""></div><div class="gmail_extra"><br clear="all" class=""><br class="">-- <br class=""><div class="gmail_signature">J.</div>
</div></div>
_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></div></body></html>