I have producer and consumer threads in my application and I need to profile them to see the performance of the threads, time taken before each goes to sleep and waits, etc., and take corrective action to improve the over all efficiency of the application.
Any suggestions on how to go about this?
System.nanoTime()
andSystem.out.printf()
– irreputable Feb 23 '11 at 4:47