bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprofng/30896] gprofng display text: please provide a way (or docum


From: ruud.vanderpas at oracle dot com
Subject: [Bug gprofng/30896] gprofng display text: please provide a way (or document how) to include the object name next to the called functions
Date: Thu, 05 Oct 2023 13:20:40 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30896

--- Comment #4 from Ruud van der Pas <ruud.vanderpas at oracle dot com> ---
This is indeed confusing. The keyword "name" in a metrics definition is
different than the "-name" option.

As was pointed out in Bugzilla 30898, this is the correct way to include the
object name:

$ gprofng display text -name short:soname -metrics e.%totalcpu:name

For example:

$ gprofng display text -name short:soname -metrics e.%totalcpu:name
-functions experiment.2.thr.er

Current metrics: e.%totalcpu:name
Current Sort Metric: Exclusive Total CPU Time ( e.%totalcpu )
Functions sorted by metric: Exclusive Total CPU Time

Excl. Total    Name
CPU
 sec.      %
1.861 100.00   <Total> [<Total>]
1.771  95.16   mxv_core [<mxv-pthreads>]
0.050   2.69   drand48 [<libc.so.6>]
0.020   1.08   erand48_r [<libc.so.6>]
0.020   1.08   init_data [<mxv-pthreads>]
0.      0.     <static>@0x1de20  [<libgp-collector.so>]
0.      0.     __libc_start_call_main [<libc.so.6>]
0.      0.     __libc_start_main_impl [<libc.so.6>]
0.      0.     main [<mxv-pthreads>]
0.      0.     start_thread [<libc.so.6>]

$

I will add a clarification and example to the documentation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]