or \n"; } elseif ( $this->getContentType() === 'text/html' ) { if ( $this->visible ) { print '
' . self::$out . '
'; } else { print "\n"; } } elseif ( $this->getContentType() === 'text/javascript' ) { print "\n/*\n" . self::$out . "*/\n"; } elseif ( $this->getContentType() === 'text/css' ) { print "\n/*\n" . self::$out . "*/\n"; } } } static function sort( $a, $b ) { return $a['real'] < $b['real']; /* sort descending by time elapsed */ } static function format( $item, $key, $totalReal ) { $perc = $totalReal ? $item['real'] / $totalReal * 100 : 0; self::$out .= sprintf( "%6.2f%% %3.6f %6d - %s\n", $perc, $item['real'], $item['count'], $key ); } }