I am using PHP and Zend. Some of my code is taking too much time to execute. What is the best method to know that how much time is consumed by a specific function/constructors.
For example:
I am calling a function like this:
$insuranceModel = new Model_Insurance_Object();
$insurances = $insuranceModel->getInsurancesList();
getInsurancesList function in Model_Insurance_Object class
public function getInsurancesList() {
// function body
}
What should I implement and where should I place ??
Thanks
XDebug has a Profiler. It seems, that is exactly, what you are looking for.