tracing
Brian Buchanan
brian@REDACTED
Fri Sep 9 22:55:21 CEST 2005
On Fri, 9 Sep 2005, Serge Aleynikov wrote:
> When a tracing process is setup with dbg:tracer/2 it accepts a function that
> can accumulate traces in a custom accumulator, such as this:
...
> Is there a way to retrieve the content of this accumulator before calling
> dbg:stop()?
Serge,
Why not write a simple gen_server that abstracts this functionality? The
trace fun would post messages to the server, which would record them as
part of its internal state. The "stop trace" function would terminate the
gen_server and return the collected trace results.
- Brian
--
Brian Buchanan <brian@REDACTED>
Principal Engineer
nCircle Network Security http://www.ncircle.com/
More information about the erlang-questions
mailing list