Ejemplo n.º 1
0
 /**
  * Updates the information about timers in the debug console.
  *
  * @static
  * @internal
  */
 public static function updateTimers()
 {
     Opl_Debug_Console::addListOption('opt_stats', 'Executed views: ', self::$_viewCount - 1);
     Opl_Debug_Console::addListOption('opt_stats', 'Compiled templates: ', self::$_cplCount - 1);
     Opl_Debug_Console::addListOption('opt_stats', 'Total template time: ', number_format(self::$_totalTime, 5) . ' s');
     if (self::$_cplCount - 1 > 0) {
         Opl_Debug_Console::addListOption('opt_stats', 'Average XML memory per template: ', number_format(self::$_xmlMemory / (self::$_cplCount - 1)) . ' b');
     }
 }