How to read dbg binary output in a file?

I traced with dbg to my system. I used

dbg:trace_port(file,{"/tmp/trace",wrap,atom_to_list(node()),10000000,20})

I now have a couple of binaries.

Never used these binary dumps .. How to read them? R.B.? disk_log? How to run them to view the log file?

+3
source share
2 answers

I have not tried this myself, but dbg:trace_client/2it looks as if it can read the file.

+4
source

First you use trace_port to get PortFun as follows:

1> PortFun = dbg:trace_port(file,{"/tmp/trace",wrap,atom_to_list(node()),10000000,20}).

Then use dbg: tracer to start the tracer, which will route messages:

2> dbg:tracer(port, PortFun).

Trace output can be obtained using trace_client:

1> Pid = dbg: trace_client (file, FileName).
..
dbg output here ...
..
2> dbg: stop_trace_client (Pid).
+5

All Articles