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 -0600
Seen: 953 times
Last updated: Nov 04 '12
Subscriber and Publisher node at once in cpp
how does second term of advertise
How do I test the ROS version in C++ code?
Getting all parameter names using C++
Are there any other signal interrupts with roscpp besides the default ctrl+c sigint handler
Is it possible to avoid busy-waiting in a spinner? [closed]
Can I "overload" topic names in ROS? (Different versions by datatype)
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~