Obtain message content of Erlang messages in dtrace

Duncan Paul Attard duncan.attard.01@REDACTED
Mon Dec 16 13:16:15 CET 2019


Thanks a lot!

Yes, currently I’m using erlang:trace/3, but was curious whether the same thing can be achieved `externally` via dtrace (or even LTTng).

Does `Dtrace is meant more to observe VM itself, not to trace you application.` mean that the message content cannot be retrieved though?

Duncan


> On 16 Dec 2019, at 13:10, Łukasz Niemier <lukasz@REDACTED> wrote:
> 
>> I was experimenting with Erlang and dtrace, and am interested to know whether the message content exchanged between two Erlang processes can be obtained. In particular, I am interested in the `message-send` and `message-receive` probes.
> 
> Dtrace is meant more to observe VM itself, not to trace you application.
> 
>> Is there a way in which this can be achieved. And if not, are there any alternatives?
> 
> For tracing your own application you have erlang:trace/3, seq_trace, dbg, dyntrace, etc. If you are more interested in tracing and debugging applications in Erlang then you should check https://www.erlang-in-anger.com
> 
> --
> 
> Łukasz Niemier
> lukasz@REDACTED
> 
> 
> 
> 
> 




More information about the erlang-questions mailing list