Gprof profiling output not appearing in .ros directory

asked 2019-09-10 14:58:01 -0600

danniccs gravatar image

Hi, I'm running a program using ROS Melodic, on Ubuntu 18.04.3 LTS. I'm following the instructions here: http://wiki.ros.org/roslaunch/Tutoria... to try and profile my program using gprof. However, after I launch the nodes using roslaunch, the profiling output does not appear in ~/.ros.

I've added the -pg option to the compilation in the CMakeLists.txt files of all the packages, and I changed the launch files so each node outputs different outputs.

Thanks in advance for the help.

edit retag flag offensive close merge delete

Comments

Has anyone else encountered this issue? I am running into the same problem.

salmon gravatar image salmon  ( 2019-11-27 06:06:18 -0600 )edit

Don't hesitate to open a new question for your issue, it may not be the same problem. If you do so, you could add more informations to your question to describe exactly what is your issue, what you tried (with some code examples/launch files) and what didn't work. This may be because of those missing informations that OP hasn't been answered yet.

Delb gravatar image Delb  ( 2019-11-28 07:43:34 -0600 )edit

I am having the same problem.

Arul Selvam gravatar image Arul Selvam  ( 2019-12-02 07:56:43 -0600 )edit

Please read my previous comment then.

Delb gravatar image Delb  ( 2019-12-02 08:32:20 -0600 )edit

@danniccs It's working for me on ROS Melodic (Ubuntu 18.04). Can you share your launch file? I'd like to see how you're structuring yours since declaring the GMON_OUT_PREFIX variable is the only other step needed (in addition to adding the -pg compiler flag).

sgarciav gravatar image sgarciav  ( 2021-04-12 07:11:40 -0600 )edit