Jump to content

Log php processing time


nchandra

Recommended Posts

I want to log the time taken to serve a Prestashop PHP page e.g. search.php.

$start = utime();

//Put this at the end of page
call to search.php

$end = utime();
$run = $end - $start;
log($run)

I want to avoid putting this code in each page. Is there a way to put this code at one place and then delegate the call to the called page?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...