Problem: One method is taking 30 seconds. How can we bring it down to the minimal?
First we need to identify all the code (methods) executed.
Get the time took by each method. So that we can troubleshoot one at a time.
How to do this?
1. Simple solution: Using difference of start time and end time.
We can’t use this always. This is not production quality code and we can’t litter the code with all these methods and calculations.
2. Using API level code
JMON API http://jamonapi.sourceforge.net/
3. Using Monitors. This is best way to test distributed installations.
– – –