Instrumenting Erlang code

Michael Truog mjtruog@REDACTED
Mon Jan 27 00:00:52 CET 2020

On 1/26/20 10:41 AM, Vans S wrote:
> On this topic, is there a way to attach instrumentation on the fly in 
> a running system? That can give you a callback onentry and onexit? To 
> profile wall time and perhap do conditional matching / stack trace 
> inspection. To see which calls trigger the slow path for example.

You could take a look at eprof to see how it works ( 
).  The eprof approach relies on tracing, which is mutating global 
state, so it lacks referential transparency and seems best to avoid in 
production source code (not saying tracing shouldn't be used in production).

Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list