[erlang-questions] Calling a function when a dbg call trace is hit?
Thu May 15 15:17:03 CEST 2014
That is not possible to do right now. It is a limitation placed on the
tracing facilities of Erlang due to performance reasons. That restriction
could be lifted in the future, but it is quite difficult to do while still
keeping about the same performance and memory footprint that tracing has
On Thu, May 15, 2014 at 1:14 PM, Roger Lipscombe <roger@REDACTED>wrote:
> On 15 May 2014 11:08, T Ty <tty.erlang@REDACTED> wrote:
> > I'm trying to understand what you mean by "It appears that all traces
> > to all processes included in the session?"
> Let me clarify:
> If I set up a trace for a particular function, for all processes:
> dbg:tpl(foo, bar, '_', ).
> dbg:p(all, c).
> ...there doesn't seem to be a way to concurrently trace _more_
> functions but only for a particular process:
> dbg:tpl(quux, '_', ).
> dbg:p(pid(0,321,0), c).
> ...at the same time. In other words, having two dbg "sessions" active at
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions