|
NAMElttng-ust-cyg-profile — LTTng UST 2.x Function TracingSYNOPSISCompile the application source code with option -finstrument-functions and launch your application either with:
or (to use verbose function tracing)
All events emitted for function tracing are provided on loglevel TRACE_DEBUG_FUNCTION. The following command can be used to add function tracing events in your trace session:
DESCRIPTIONFor compilers that provide code generation option -finstrument-functions (e.g. GCC and LLVM/Clang) LTTng-UST provides shared libraries that allow users to trace the function flow of their applications.Function tracing comes in two flavors (each providing different trade-offs):
USAGETo use function tracing you need to make sure the sources of your application are compiled with -finstrument-functions. It might be necessary to limit the number of source files where this option is used to prevent excessive amount of trace data to be generated during run time. Usually there are additional compiler flags that allow you to specify more fine grained selection of function instrumentation.For each instrumented function the executable will contain calls to profiling function hooks (after function entry and just before function exit). By preloading (LD_PRELOAD) one of the provided shared libraries, these profiling hooks get defined to emit LTTng events (as described above). Using this feature can result in massive amount trace data to be generated by the instrumented application. Application runtime is also considerably affected. Be careful on systems with limited resources. SEE ALSOlttng-ust(3), lttng(1), gcc(1), ld.so(8)BUGSIf you encounter any issues or usability problem, please report it on our mailing list <lttng-dev@lists.lttng.org> to help improve this project.CREDITSliblttng-ust is distributed under the GNU Lesser General Public License version 2.1. The headers are distributed under the MIT license.See http://lttng.org for more information on the LTTng project. Mailing list for support and development: <lttng-dev@lists.lttng.org>. You can find us on IRC server irc.oftc.net (OFTC) in #lttng. AUTHORSliblttng-ust was originally written by Mathieu Desnoyers, with additional contributions from various other people. It is currently maintained by Mathieu Desnoyers <mathieu.desnoyers@efficios.com>.
Visit the GSP FreeBSD Man Page Interface. |