_compile_benchmarks() protected method

This function cycles through the entire array of mark points and matches any two points that are named identically (ending in "_start" and "_end" respectively). It then compiles the execution times for all points and returns it as an array
protected _compile_benchmarks ( ) : array
return array
Esempio n. 1
0
 protected function _compile_benchmarks()
 {
     $output = parent::_compile_benchmarks();
     foreach ($output as $benchmark => $time) {
         $output[$benchmark] = $this->milliseconds($time);
     }
     return $output;
 }