Profiling Code with Virtual VM

Hi,

Has anyone been able to get jstatd on the roboRIO and profile the code using Virtual VM? We have been considering installing jstatd on it and we want to know if someone has managed to get it running.

Additionally, we would like to know if anyone knows of any code profilers we could use or if profiling robot code is even worthwhile.

Did you have any luck profiling your code? We are regularly using 85-90% cpu and spiking to a 100%, which seems to cause intermitent CAN timeouts. We do have a fair amount of logging in place, and are trying to do a fair amount, but it would be nice to narrow down the slower bits of code and remove/replace as necessary, rather than chopping stuff out at random, until we find the slowest/most run portions.

Thanks