Merge: Trace system
authorJean Privat <jean@pryen.org>
Sat, 12 May 2018 01:10:40 +0000 (21:10 -0400)
committerJean Privat <jean@pryen.org>
Sat, 12 May 2018 01:10:40 +0000 (21:10 -0400)
commit117019163454493a5d0f7289d7a14a642e6ae4fe
treef796e1d535666ea87f01adf3a247a2d8f9645f3f
parent2a1a159a4814528a1e055f581fa50928004fb956
parentb793c465e1d2891a85d77266220d0062a13b6974
Merge: Trace system

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>