VisualVM is a nice but a little complicated tool for me.
I wrote a class with many functions (in Eclipse). How can I get the information of how many time each function calls and the time they cost when during execution?
It is actually simple. Run your program and it will automatically appear as a running process in the VisualVM Panel. Click on it, and go straight to the Sampler tab. Finnaly, click on CPU and bingo! There you can see the time each function takes! (awesome!)