X-Git-Url: http://nitlanguage.org diff --git a/share/man/nitc.md b/share/man/nitc.md index d29a131..eff6232 100644 --- a/share/man/nitc.md +++ b/share/man/nitc.md @@ -249,7 +249,25 @@ For more debugging-related options, see also `--hardening` and `NIT_GC_OPTION` ### `--trace` Compile with lttng's instrumentation. -Currently add a lttng trace provider and add tracepoint into object instances. +Currently add a lttng trace provider and add tracepoint into object instances and destructions. + +The lttng nit/misc/Nit_Compiler.lttng file is a template that you can use instead of configure channels by yourself. You have to configure the path of the destination tracefile. "your path" + +To create a channel with template : + lttng-sessiond --daemonize + lttng load -i=~/nit/misc/Nit_Compiler.lttng Nit_Compiler +To create a channel without template : + lttng create session_name + lttng enable-event --userspace Nit_Compiler:Object_Instance + lttng enable-event --userspace Nit_Compiler:Object_Destroy +To record some traces : + lttng start + --> run your program + lttng stop +To read some traces : + babeltrace ~/session_name +To destroy your current tracing session : + lttng destroy ## COMPILATION MODES