[erlang-questions] signal arrival time

Kenneth Lundin kenneth.lundin@REDACTED
Wed May 2 17:07:51 CEST 2012

Note that the trace mechanisms should not be used as a regular part of
production code. Trace is intended for trouble shooting and profiling, if
used as part of the regular system it will destroy the possibility to use
trace for trouble shooting alternatively trouble shooting will destroy the
running system.

It would be interesting to know what you are going to use the information
about when a message arrived to a mailbox for? Maybe there are other ways
of solving  your problem?

Kenneth, Erlang/OTP Ericsson

Den 2 maj 2012 13:56 skrev "Mazen Harake" <mazen.harake@REDACTED>:
> Yes you can.
> You can trace the process you want to observe (use the flags 'r' for
> receive and 'timestamp' for attaching the time to it) and then receive
> the trace messages using your own trace event handler. I would also
> recommend that you use matchspecifications in case you are only
> interested if 1 specific message has arrived, it is much more
> efficient.
> I wrote a pretty straightforward tutorial on how to do these sort of
> things in one of the EUC a couple of years ago. You can find it here:
> http://www.erlang-factory.com/upload/presentations/316/dbg[1].pdf
> BR,
> /M
> On 2 May 2012 05:24, József Bérces <jozsef.berces@REDACTED> wrote:
> > Is there a way to tell the time when a signal arrived to the process
> > mailbox?
> >
> > Thanks,
> > Jozsef
> >
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
> >
> _______________________________________________
> 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/20120502/1d4e1c11/attachment.htm>

More information about the erlang-questions mailing list