From: SourceForge.net <no...@so...> - 2009-04-02 23:36:46
|
Bugs item #2727485, was opened at 2009-04-02 18:30 Message generated for change (Comment added) made by tikitdo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116191&aid=2727485&group_id=16191 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: TikiTDO (tikitdo) Assigned to: Nobody/Anonymous (nobody) Summary: opreport --callgraph --xml missing symbols with zero samples Initial Comment: Calling `opreport --callgraph --xml` outputs an xml with missing samples. To Reproduce: 1. Compile a program with two processing heavy functions called by several small intermediate functions (Example provided as test.cpp) ---------------------------------------------------------------------- >Comment By: TikiTDO (tikitdo) Date: 2009-04-02 18:36 Message: Issue submitted in error before finishing up description. Continued from above: 2. Profile with call-graph enabled 3. `opreport -c` reports several symbols with 0 samples: ------------------------------------------------------------------------------- 9933 100.000 test b() 0 0 test bb() 9935 100.000 test bbb() 0 0 test bb() [self] ------------------------------------------------------------------------------- 9935 100.000 test bb() 0 0 test bbb() 9935 100.000 test bbbb() 0 0 test bbb() [self] ------------------------------------------------------------------------------- 9935 100.000 test bbb() 0 0 test bbbb() 9935 100.000 test c() 0 0 test bbbb() [self] ------------------------------------------------------------------------------- 4. `opreport -X -c` is missing functions that were called from other functions with 0 samples. In the above case the symbol bbb() is missing. This creates problems when trying to use GUI utilities to visualize the call tree. <symboltable> <symboldata id="0" name="aa()" startingaddr="080484e8"/> <symboldata id="3" name="a()" startingaddr="08048536"/> <symboldata id="2" name="b()" startingaddr="0804849a"/> <symboldata id="5" name="c()" startingaddr="0804842e"/> <symboldata id="7" name="d()" startingaddr="080483e4"/> <symboldata id="4" name="bb()" startingaddr="08048490"/> <symboldata id="6" name="bbbb()" startingaddr="0804847c"/> <symboldata id="1" name="main" startingaddr="08048584"/> </symboltable> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116191&aid=2727485&group_id=16191 |