本文整理汇总了PHP中Profiler::In方法的典型用法代码示例。如果您正苦于以下问题:PHP Profiler::In方法的具体用法?PHP Profiler::In怎么用?PHP Profiler::In使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Profiler
的用法示例。
在下文中一共展示了Profiler::In方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
/**
* @see SpecialPage::execute
*/
public function execute($param)
{
Profiler::In(__METHOD__);
$semanticStatistics = $this->getStore()->getStatistics();
$context = $this->getContext();
$out = $this->getOutput();
$out->setPageTitle($context->msg('semanticstatistics')->text());
$out->addHTML($context->msg('smw_semstats_text')->numParams($semanticStatistics['PROPUSES'], $semanticStatistics['USEDPROPS'], $semanticStatistics['OWNPAGE'], $semanticStatistics['DECLPROPS'])->parseAsBlock());
Profiler::Out(__METHOD__);
}
示例2: initContentLanguage
/**
* Initialise a global language object for content language. This must happen
* early on, even before user language is known, to determine labels for
* additional namespaces. In contrast, messages can be initialised much later
* when they are actually needed.
*
* @since 1.9
*/
protected function initContentLanguage($langcode)
{
Profiler::In();
$this->setLanguage($langcode);
$this->isValidLanguageClassOrSetFallback($this->globalVars['smwContLangClass'], 'en');
$this->globalVars['smwgContLang'] = new $this->globalVars['smwContLangClass']();
Profiler::Out();
}
示例3: compareConversionTypedFactors
/**
* Compare and find changes related to conversion factor
*
* @since 1.9
*/
protected function compareConversionTypedFactors()
{
Profiler::In(__METHOD__, true);
$pconversion = new DIProperty(DIProperty::TYPE_CONVERSION);
$newfactors = $this->semanticData->getPropertyValues($pconversion);
$oldfactors = $this->store->getPropertyValues($this->semanticData->getSubject(), $pconversion);
$this->notifyUpdateDispatcher(!$this->isEqual($oldfactors, $newfactors));
Profiler::Out(__METHOD__, true);
}