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: 928 times
Last updated: Nov 04 '12
Compiling with "-L /usr/local/lib" option
Python c++ binding with Cython or boost/python
Are there macros which define the ROS version?
roscpp: requesting current queue state of subscriber
STM32 communication with ROS via ethernet AND Serial
Getting list of published topics from within C++ code
Significance of ros::spinOnce()
Undefined reference for string constant in service
Automatic node shutdown if topic is no longer receiving messages
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~