Open chengguo-msft opened 3 years ago
Hello, thanks for using uftrace and reporting the issue.
It might be optimized by the compiler so you'd better check the assembly of the loop. Please make sure that it calls the function in the loop body and the functions have calls to the mcount.
I am using uftrace to trace g2o::BlockSolver::solve's call graph in ORB_SLAM2, however, when program runs into this loop, functions in it are not being recorded, like the inverse function.
Steps to reproduce:
-pg
and-fno-omit-frame-pointer
to gcc and g++ by replacing /usr/bin/gcc and /usr/bin/g++ with following bash script files. (I know this is not a recommended way)The function call graph I got:
graph.txt