I am working on profiling Ranch protocol handler which is implemented as gen_statem. Currently I am tracing all handle_event/4 function calls, but that results in a lot of separate traces and it is hard to see overall picture. Would it be possible to trace single process (ideally running it from source code)? It would make profiling such code way easier than current workaround (I have tried monitoring enter_loop which I use, but that never produced any output).