MediaWiki
REL1_20
|
Base class and functions for profiling. More...
Go to the source code of this file.
Classes | |
class | Profiler |
Functions | |
wfProfileIn ($functionname) | |
Begin profiling of a function. | |
wfProfileOut ($functionname= 'missing') | |
Stop profiling of a function. |
Base class and functions for profiling.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
This file is only included if profiling is enabled
Definition in file Profiler.php.
wfProfileIn | ( | $ | functionname | ) |
Begin profiling of a function.
$functionname | String: name of the function we will profile |
Definition at line 33 of file Profiler.php.
References $wgProfiler, and Profiler\instance().
Referenced by ResourceLoader\__construct(), MappedDiff\__construct(), WordLevelDiff\__construct(), DiffFormatter\_block(), TableDiffFormatter\_changed(), Diff\_check(), _DiffEngine\_shift_boundaries(), WordLevelDiff\_split(), StubObject\_unstub(), RedisBagOStuff\add(), DBABagOStuff\add(), LinkCache\addLinkObj(), WatchedItem\addWatch(), FileOpBatch\attempt(), SkinTemplate\buildContentActionUrls(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), Skin\buildSidebar(), Profiler\calculateOverhead(), UploadBase\checkWarnings(), WordLevelDiff\closing(), ViewCountUpdate\collect(), LanguageKk\convertGrammar(), RedisBagOStuff\delete(), EhcacheBagOStuff\delete(), DBABagOStuff\delete(), Block\deleteIfExpired(), DeviceDetection\detectDeviceName(), UploadBase\detectScript(), UploadBase\detectVirus(), _DiffEngine\diff(), _DiffEngine\diff_local(), StandardTemplate\doAfterContent(), Parser\doAllQuotes(), LegacyTemplate\doBeforeContent(), Parser\doDoubleUnderscore(), LinksUpdate\doDumbUpdate(), LinksUpdate\doIncrementalUpdate(), UserCache\doQuery(), LinkBatch\doQuery(), DjVuHandler\doTransform(), SearchUpdate\doUpdate(), DeferredUpdates\doUpdates(), Xml\elementClean(), ApiTokens\execute(), LinkBatch\executeInto(), SpecialPageFactory\executePath(), TempFSFile\factory(), ResourceLoader\filter(), Parser_LinkHooks\firstCallInit(), DiffFormatter\format(), Linker\formatComment(), FeedUtils\formatDiffRow(), Linker\formatHiddenCategories(), SpecialProtectedtitles\formatRow(), SpecialProtectedpages\formatRow(), DeletedContribsPager\formatRow(), Linker\formatTemplates(), CoreParserFunctions\gender(), ChangesFeed\generateFeed(), MessageBlobStore\get(), EhcacheBagOStuff\get(), RedisBagOStuff\get(), DBABagOStuff\get(), ParserCache\get(), Skin\getCachedNotice(), Title\getCascadeProtectionSources(), LoadBalancer\getConnection(), Article\getContent(), CreditsAction\getCredits(), WikiPage\getLastNAuthors(), BacklinkCache\getLinks(), Title\getLinkURL(), SpecialPageFactory\getList(), DjVuHandler\getMetaTree(), ResourceLoaderFileModule\getModifiedTime(), ResourceLoaderStartUpModule\getModuleRegistrations(), RedisBagOStuff\getMulti(), Skin\getNamespaceNotice(), Revision\getParentLengths(), FSFile\getProps(), LoadBalancer\getReaderIndex(), UploadBase\getRealPath(), Revision\getRevisionText(), FSFile\getSha1Base36(), Skin\getSiteNotice(), Skin\getSkinNames(), ProtectedTitlesPager\getStartBody(), LogPager\getStartBody(), MergeHistoryPager\getStartBody(), ApiTokens\getTokenTypes(), BaseTemplate\getToolbox(), Title\getUserPermissionsErrorsInternal(), SpecialVersion\getVersion(), SpecialVersion\getVersionLinked(), SquidUpdate\HTCPPurge(), DBABagOStuff\incr(), RedisBagOStuff\incr(), Skin\initPage(), Revision\insertOn(), Linker\link(), Linker\linkAttribs(), Linker\linkUrl(), MagicWord\load(), OldLocalFile\loadFromDB(), Revision\loadText(), MessageCache\logMessages(), MediaWiki\main(), Linker\makeBrokenImageLinkObj(), Linker\makeBrokenLinkObj(), Parser\makeFreeExternalLink(), LinkHolderArray\makeHolder(), Linker\makeKnownLinkObj(), Linker\makeLinkObj(), ResourceLoader\makeModuleResponse(), DatabaseMysql\masterPosWait(), SquidUpdate\newFromLinksTo(), Revision\newNullRevision(), LanguageYue\normalizeForSearch(), LanguageZh_hans\normalizeForSearch(), LanguageBe_tarask\normalizeForSearch(), LanguageZh\normalizeForSearch(), Linker\normalizeSubpageLink(), SearchMySQL\normalizeText(), WatchAction\onSubmit(), UnwatchAction\onSubmit(), CreditsAction\onView(), HistoryAction\onView(), DatabaseMysql\open(), DatabaseIbm_db2\open(), LoadBalancer\openConnection(), LoadBalancer\openForeignConnection(), WordLevelDiff\orig(), SkinTemplate\outputPage(), InfoAction\pageCounts(), SiteStats\pagesInNs(), UploadBase\performUpload(), BlockListPager\preprocessResults(), ApiBase\profileDBIn(), ApiBase\profileIn(), SquidUpdate\purge(), LinksUpdate\queueRecursiveJobs(), StandardTemplate\quickBar(), SvgHandler\rasterize(), MWCryptRand\realGenerate(), ResourceLoader\register(), ResourceLoader\registerTestModules(), Sanitizer\removeHTMLcomments(), Sanitizer\removeHTMLtags(), WatchedItem\removeWatch(), RedisBagOStuff\replace(), LinkHolderArray\replace(), ReplacementArray\replace(), LinkHolderArray\replaceInternal(), Parser_LinkHooks\replaceInternalLinks2(), Parser_LinkHooks\replaceInternalLinksCallback(), LinkHolderArray\replaceInterwiki(), LinkHolderArray\replaceText(), LoadBalancer\reportConnectionError(), ResourceLoader\respond(), DjVuImage\retrieveMetaData(), RefreshLinksJob\run(), Hooks\run(), RefreshLinksJob2\run(), RefreshLinksJob\runForTitleInternal(), EhcacheBagOStuff\set(), RedisBagOStuff\set(), DBABagOStuff\set(), SpecialSearch\showResults(), LoadBalancer\sleep(), UploadBase\stashFile(), StreamFile\stream(), BitmapHandler\transformCustom(), BitmapHandler\transformImageMagick(), Parser\transformMsg(), MediaWiki_I18N\translate(), StripState\unstripType(), OldLocalFile\upgradeRow(), UploadBase\verifyFile(), UploadBase\verifyMimeType(), UploadBase\verifyPartialFile(), UploadBase\verifyUpload(), LoadBalancer\waitFor(), LoadBalancer\waitForAll(), wfIsBadImage(), wfMsgReal(), and wfStreamThumb().
wfProfileOut | ( | $ | functionname = 'missing' | ) |
Stop profiling of a function.
$functionname | String: name of the function we have profiled |
Definition at line 44 of file Profiler.php.
References $wgProfiler, and Profiler\instance().
Referenced by ResourceLoader\__construct(), MappedDiff\__construct(), WordLevelDiff\__construct(), DiffFormatter\_block(), TableDiffFormatter\_changed(), Diff\_check(), _DiffEngine\_shift_boundaries(), WordLevelDiff\_split(), StubObject\_unstub(), RedisBagOStuff\add(), DBABagOStuff\add(), LinkCache\addLinkObj(), WatchedItem\addWatch(), FileOpBatch\attempt(), SkinTemplate\buildContentActionUrls(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), Skin\buildSidebar(), Profiler\calculateOverhead(), UploadBase\checkWarnings(), WordLevelDiff\closing(), ViewCountUpdate\collect(), LanguageKk\convertGrammar(), RedisBagOStuff\delete(), EhcacheBagOStuff\delete(), DBABagOStuff\delete(), Block\deleteIfExpired(), DeviceDetection\detectDeviceName(), UploadBase\detectScript(), UploadBase\detectVirus(), _DiffEngine\diff(), _DiffEngine\diff_local(), StandardTemplate\doAfterContent(), Parser\doAllQuotes(), LegacyTemplate\doBeforeContent(), Parser\doDoubleUnderscore(), LinksUpdate\doDumbUpdate(), LinksUpdate\doIncrementalUpdate(), UserCache\doQuery(), LinkBatch\doQuery(), DjVuHandler\doTransform(), SearchUpdate\doUpdate(), DeferredUpdates\doUpdates(), Xml\elementClean(), ApiTokens\execute(), RedirectSpecialPage\execute(), LinkBatch\executeInto(), SpecialPageFactory\executePath(), TempFSFile\factory(), ResourceLoader\filter(), Parser_LinkHooks\firstCallInit(), DiffFormatter\format(), Linker\formatComment(), FeedUtils\formatDiffRow(), SpecialProtectedtitles\formatRow(), SpecialProtectedpages\formatRow(), DeletedContribsPager\formatRow(), Linker\formatTemplates(), CoreParserFunctions\gender(), ChangesFeed\generateFeed(), MessageBlobStore\get(), EhcacheBagOStuff\get(), RedisBagOStuff\get(), DBABagOStuff\get(), ParserCache\get(), Skin\getCachedNotice(), Title\getCascadeProtectionSources(), LoadBalancer\getConnection(), Article\getContent(), CreditsAction\getCredits(), WikiPage\getLastNAuthors(), BacklinkCache\getLinks(), Title\getLinkURL(), SpecialPageFactory\getList(), DjVuHandler\getMetaTree(), ResourceLoaderFileModule\getModifiedTime(), ResourceLoaderStartUpModule\getModuleRegistrations(), RedisBagOStuff\getMulti(), Skin\getNamespaceNotice(), Revision\getParentLengths(), FSFile\getProps(), LoadBalancer\getReaderIndex(), UploadBase\getRealPath(), Revision\getRevisionText(), FSFile\getSha1Base36(), Skin\getSiteNotice(), Skin\getSkinNames(), ProtectedTitlesPager\getStartBody(), LogPager\getStartBody(), MergeHistoryPager\getStartBody(), HistoryBlobStub\getText(), ApiTokens\getTokenTypes(), BaseTemplate\getToolbox(), Title\getUserPermissionsErrorsInternal(), SpecialVersion\getVersion(), SpecialVersion\getVersionLinked(), SquidUpdate\HTCPPurge(), DBABagOStuff\incr(), RedisBagOStuff\incr(), Skin\initPage(), Revision\insertOn(), Linker\link(), Linker\linkAttribs(), Linker\linkUrl(), MagicWord\load(), OldLocalFile\loadFromDB(), Revision\loadText(), MessageCache\logMessages(), MediaWiki\main(), Linker\makeBrokenImageLinkObj(), Linker\makeBrokenLinkObj(), Parser\makeFreeExternalLink(), LinkHolderArray\makeHolder(), Linker\makeKnownLinkObj(), Linker\makeLinkObj(), ResourceLoader\makeModuleResponse(), DatabaseMysql\masterPosWait(), SquidUpdate\newFromLinksTo(), Revision\newNullRevision(), LanguageYue\normalizeForSearch(), LanguageZh_hans\normalizeForSearch(), LanguageBe_tarask\normalizeForSearch(), LanguageZh\normalizeForSearch(), Linker\normalizeSubpageLink(), SearchMySQL\normalizeText(), WatchAction\onSubmit(), UnwatchAction\onSubmit(), CreditsAction\onView(), HistoryAction\onView(), DatabaseMysql\open(), DatabaseIbm_db2\open(), LoadBalancer\openConnection(), LoadBalancer\openForeignConnection(), WordLevelDiff\orig(), SkinTemplate\outputPage(), InfoAction\pageCounts(), SiteStats\pagesInNs(), UploadBase\performUpload(), BlockListPager\preprocessResults(), ApiBase\profileDBOut(), ApiBase\profileOut(), SquidUpdate\purge(), LinksUpdate\queueRecursiveJobs(), StandardTemplate\quickBar(), SvgHandler\rasterize(), MWCryptRand\realGenerate(), ResourceLoader\register(), ResourceLoader\registerTestModules(), Sanitizer\removeHTMLcomments(), Sanitizer\removeHTMLtags(), WatchedItem\removeWatch(), RedisBagOStuff\replace(), LinkHolderArray\replace(), ReplacementArray\replace(), LinkHolderArray\replaceInternal(), Parser_LinkHooks\replaceInternalLinks2(), Parser_LinkHooks\replaceInternalLinksCallback(), LinkHolderArray\replaceInterwiki(), LinkHolderArray\replaceText(), LoadBalancer\reportConnectionError(), ResourceLoader\respond(), DjVuImage\retrieveMetaData(), RefreshLinksJob\run(), Hooks\run(), RefreshLinksJob2\run(), RefreshLinksJob\runForTitleInternal(), EhcacheBagOStuff\set(), RedisBagOStuff\set(), DBABagOStuff\set(), SpecialSearch\showResults(), LoadBalancer\sleep(), UploadBase\stashFile(), StreamFile\stream(), BitmapHandler\transformCustom(), BitmapHandler\transformImageMagick(), Parser\transformMsg(), MediaWiki_I18N\translate(), StripState\unstripType(), OldLocalFile\upgradeRow(), UploadBase\verifyFile(), UploadBase\verifyMimeType(), UploadBase\verifyPartialFile(), UploadBase\verifyUpload(), LoadBalancer\waitFor(), LoadBalancer\waitForAll(), wfIsBadImage(), wfMsgReal(), and wfStreamThumb().