How to profile message activity?
Are there any tools for profiling or collecting statistics on the types of message activity per node?
I'm trying to troubleshoot some nodes consuming excessive amounts of CPU, and to help diagnose the problem, I'd like to get a histogram of the types of messages they publish over a given time range.
e.g. If I find something like:
topic messages/min
/mynode/encoders 23
/mynode/button 1
/mynode/imu 239423847887
/mynode/gps 56
then I'll immediately know it's publish rate for IMU messages is too high.
Obviously, I could do this manually by checking every single topic, but it's be nice to have a tool to automate this, and I don't want to reinvent the wheel.