How to show method entry/exit in Trace Compass?
Matthew Khouzam
matthew.khouzam at ericsson.com
Fri May 1 15:31:43 EDT 2026
Hi David,
I would love to look into the "lost event". Can you share the trace? maybe it's an easy win.
________________________________
From: lttng-dev <lttng-dev-bounces at lists.lttng.org> on behalf of David Aldrich via lttng-dev <lttng-dev at lists.lttng.org>
Sent: Thursday, April 30, 2026 7:01 PM
To: lttng-dev at lists.lttng.org <lttng-dev at lists.lttng.org>
Subject: How to show method entry/exit in Trace Compass?
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/20260501/998c5bad/attachment.htm>
More information about the lttng-dev
mailing list