How to show method entry/exit in Trace Compass?

David Aldrich via lttng-dev <[email protected]> Thu, 30 Apr 2026 18:01:32 +0100
Newsgroups org.lttng.lists.lttng-dev
Message-ID <CAJK_ieix5QAMUEhY4R4Cm5tUwZ_W98fG8wrb947GwCW3YR0tqQ@mail.gmail.com>
--00000000000031c21a0650b06b0f
Content-Type: text/plain; charset="UTF-8"

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

--00000000000031c21a0650b06b0f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi<br><br>I&#39;m using LTTng 2.13.11 on=C2=A0Ubuntu 24.04=
 with Trace Compass 11.3.0 on=C2=A0Windows,=C2=A0to analyse a C++ app.<div>=
<br>I have used LTTng and Trace Compass a little to instrument our user spa=
ce app using=C2=A0=C2=A0lttng_ust_tracef(). I now want to show actual metho=
d entry/exit points in a Gantt type view.</div><div><br></div><div>With hel=
p from AI I instrumented entry/exit for one method. Babeltrace shows that t=
he trace files contain those points:<br><br>&lt;time&gt; sr1=C2=A0

myapp:method_entry: { cpu_id =3D 4 }, { class =3D &quot;ThreadPool&quot;, m=
ethod =3D &quot;mainLoop&quot; }</div><div>&lt;time&gt; sr1 myapp:method_ex=
it: { cpu_id =3D 6 }, { class =3D &quot;ThreadPool&quot;, method =3D &quot;=
mainLoop&quot; }</div><div><br></div><div>But when I import the trace into =
Trace Compass I see the events but the trace shows only the app name, not t=
he method name.<br><br>What am I missing? Is there a user guide article tha=
t would help me?<br><br>Best regards</div><div>David</div></div>

--00000000000031c21a0650b06b0f--