[lttng-dev] Separate trace file per app

Anand Neeli anand.neeli at gmail.com
Thu Nov 28 05:16:31 EST 2013


Hi All,
How can i create separate trace-file per app?

As shown below, i have created two trace sessions and filtered based on
procname.
Is this the correct way? or is there any other efficient way to do it?


./lttng create app_1_trace
./lttng enable-event -s app_1_trace -u -a --filter '$ctx.procname ==
"app_1"'
./lttng start app_1_trace
now run app_1    ./app_1


./lttng create app_2_trace
./lttng enable-event -s app_2_trace -u -a --filter '$ctx.procname ==
"app_2"'
./lttng start app_2_trace
now run app_2     ./app_2



Thanks,
Anand Neeli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131128/b2456814/attachment-0001.html>


More information about the lttng-dev mailing list