This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: call graphs in sprof


On 7/3/07, Pierre Habouzit <madcoder@debian.org> wrote:
please read mails fully.
Apologies...

I get <UNKNOWN> symbols in the call graph for calls to and from
libraries/ applications which have been compiled with profiling and
debuging information.

In the above example, libfoo and libfun both have the profiling
enabled, but when libfun.so calls function calls functions in
libfoo.so, the call graph does not give this information.

Each sample counts as 0.01 seconds.
%   cumulative   self              self     total
time   seconds   seconds    calls  us/call  us/call  name
0.00      0.00     0.00        3     0.00           fun

index % time self children called name

[0]      0.0    0.00    0.00        0         mcount@@GLIBC_2.0 [0]
              0.00    0.00        3/3           fun [2]
-----------------------------------------------
              0.00    0.00        3/3           <UNKNOWN>
[2]      0.0    0.00    0.00        3         fun [2]
-----------------------------------------------

Does the <UNKNOWN> in the above graph refer to call to the other
library function (foo) or the function calling it (main) ?


-Arvind



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]