Esempio n. 1
0
 /**
  * Output a time mark
  *
  * The mark is returned as string but and put in the internal stack
  *
  * @access public
  * @param string A label for the time mark
  * @return string Mark text
  */
 function mark($label)
 {
     $mark = $this->_prefix . " {$label}: ";
     $mark .= sprintf('%0.1f', ($this->getmicrotime() - $this->_start) * 1000) . ' ms';
     $mark .= ', ' . sprintf('%0.2f', parent::getMemory() / 1048576) . ' MB';
     $mark .= ', ' . sprintf('%0.2f', (parent::getMemory() - $this->_memstart) / 1048576) . ' MB incr.';
     $mark .= ', ' . ($this->_db->getTicker() - $this->_tickerstart) . ' queries';
     $this->_buffer[] = $mark;
     return $mark;
 }
Esempio n. 2
0
File: page.php Progetto: JCBR/JFox
defined('_JEXEC') or die('Access Denied');

$option = JRequest::getVar('option');
$controller = JRequest::getVar('controller');
$model = JRequest::getVar('model');
$view = JRequest::getVar('view');
$tmpl = JRequest::getVar('tmpl');
$format = JRequest::getVar('format');
$Itemid = JRequest::getInt('Itemid');
//$id = JRequest::getInt('Itemid');


//TODO: REALLY rewrite this performance part in nexts versions
jimport( 'joomla.error.profiler' );				
$getmemory = JProfiler::getMemory();

if ($getmemory < 1024){
    $memory2 = $mem_usage." bytes";
}
elseif ($getmemory < 1048576){
    $memory2 = round($mem_usage/1024,2)." kilobytes";
}
 else {
    $memory2 = round($getmemory/1048576,2)." megabytes";
}; 


$pagefox = NULL;
$pagefox .='<div id="jfox_page" style="display:none;">
<fieldset><legend>' . JTEXT::_('Information about this page') . '</legend>'