How to show method entry/exit in Trace Compass?

David Aldrich david.aldrich.ntml at gmail.com
Thu Apr 30 13:01:32 EDT 2026


Hi

I'm using LTTng 2.13.11 on Ubuntu 24.04 with Trace Compass 11.3.0
on Windows, to analyse a C++ app.

I have used LTTng and Trace Compass a little to instrument our user space
app using  lttng_ust_tracef(). I now want to show actual method entry/exit
points in a Gantt type view.

With help from AI I instrumented entry/exit for one method. Babeltrace
shows that the trace files contain those points:

<time> sr1  myapp:method_entry: { cpu_id = 4 }, { class = "ThreadPool",
method = "mainLoop" }
<time> sr1 myapp:method_exit: { cpu_id = 6 }, { class = "ThreadPool",
method = "mainLoop" }

But when I import the trace into Trace Compass I see the events but the
trace shows only the app name, not the method name.

What am I missing? Is there a user guide article that would help me?

Best regards
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20260430/a74c8149/attachment.htm>


More information about the lttng-dev mailing list