To install lttng: https://lttng.org/docs/v2.10/#doc-installing-lttng
To compile using the trace system: add -t or --trace
To test tracing some instances :
lttng create "Nom de la session"
lttng enable-event --userspace Nit_Compiler:Object_Instance
lttng start
--> run your program
lttng stop
To read your CTF trace file:
babeltrace ~/lttng-traces/nom_de_la_session
define TRACEPOINT_INCLUDE "/home/olivier/Bureau/nit/src/nit_compile/traces.h"
This instruction is located into traces.h. You have to adapt it with your specific path.
The dynamical version is the object of the next PR.
Pull-Request: #2666
Reviewed-by: Jean Privat <jean@pryen.org>