I'm using Codeigniter's profiler function and I'd like to save that information to an array and be able to display it.
$this->output->enable_profiler(TRUE);
Currently it shows me the information without layout and I can't control it, at most I can hide some elements:
$sections = array(
'config' => FALSE,
'benchmarks' => FALSE,
'config' => FALSE ...
}
I am very interested in obtaining the total execution time of all the queries that are executed in each section of my website and displaying it.
Something like this I want to get:
Página cargada en 0.003 segundos.
Is it possible to do this?
You can do this through the Benchmarking Class that
Codeigniter
it provides you.That is the simplest way to measure time using it
Codeigniter
.