How to generate call graph for ROS code?
For example, I want to analysis roscpp call graph.
Which tools I can use? How?
It will very great if it has graphical interface.
Thank you~
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
For example, I want to analysis roscpp call graph.
Which tools I can use? How?
It will very great if it has graphical interface.
Thank you~
As with any binary in Linux, you can use valgrind / callgrind to collect the information during run time. A visualizer for the results is e.g. http://kcachegrind.sourceforge.net/html/Documentation.html.
You can install the package in Ubuntu with
sudo apt-get install valgrind kcachegrind
This isn't really a ROS-specific question, but Stack Overflow has this solution which might be helpful.
Asked: 2012-04-05 00:07:52 -0500
Seen: 924 times
Last updated: Nov 04 '12
How to get versions in package.xml from roscpp codes
Unexplainable double free or corruption
Callback is not called when used with a templated calss method
unable to launch [] if it is a script, you may be missing a '#!' declaration
ros::subscriber global variable a bad idea?
generic way to test message equality
How to ROS_*_THROTTLE inside objects?
Can you use doxygen or codeviz?
Thank you. I found that I can use doxywizard to generate each function's call graph,but where is the whole picture call graph? Another question is codeviz should patch compiler,so it seems very hard to work on ROS. How to do it?
I also found that doxywizard just generate partial call graph. Because I found that the function it generate call graph failed (roscpp init.cpp init() ). Is there any tool can generate complete call graph? Thank you~