本文整理汇总了PHP中vmRamPeak函数的典型用法代码示例。如果您正苦于以下问题:PHP vmRamPeak函数的具体用法?PHP vmRamPeak怎么用?PHP vmRamPeak使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了vmRamPeak函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: migrateAllInOne
function migrateAllInOne()
{
$result = $this->portMedia();
$result = $this->portShoppergroups();
$result = $this->portUsers();
$result = $this->portVendor();
$result = $this->portCategories();
$result = $this->portManufacturerCategories();
$result = $this->portManufacturers();
$result = $this->portProducts();
//$result = $this->portOrderStatus();
$result = $this->portOrders();
$time = microtime(true) - $this->starttime;
$this->_app->enqueueMessage('Worked on migration for ' . $time . ' seconds');
vmRamPeak('Migrate all ended ');
return $result;
}
示例2: array
if (!class_exists($_class)) {
require $basePath . DS . 'controllers' . DS . $_controller . '.php';
}
} else {
// try plugins
JPluginHelper::importPlugin('vmextended');
$dispatcher = JDispatcher::getInstance();
$rets = $dispatcher->trigger($trigger, array($_controller));
foreach ($rets as $ret) {
if ($ret) {
return true;
}
}
}
if (class_exists($_class)) {
$controller = new $_class();
$controller->execute($task);
//vmTime($_class.' Finished task '.$task,'Start');
vmRam('End');
vmRamPeak('Peak');
/* Redirect if set by the controller */
$controller->redirect();
} else {
vmDebug('VirtueMart controller not found: ' . $_class);
if (tsmConfig::get('handle_404', 1)) {
$mainframe = Jfactory::getApplication();
$mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=tsmart', FALSE));
} else {
JError::raise(E_ERROR, '404', 'Not found');
}
}