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: 927 times
Last updated: Nov 04 '12
PAUSE/STOP the ros subscriber(callback function) and restart it?
Help with writing a subscriber node for an existing publisher
ros_tutorials roscpp talker/listener loses first message or two
rviz orbit viewcontroller lookat function
Is it possible to avoid busy-waiting in a spinner? [closed]
roscpp: set / get vector containing infinity from parameter server
What is the best solution to stream video frames over the network?
catkin_make not installing new source
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~