MediaWiki  REL1_22
Profiler.php File Reference

Base class and functions for profiling. More...

Go to the source code of this file.

Classes

class  Profiler
class  ProfileSection
 Class for handling function-scope profiling. More...

Functions

 wfProfileIn ($functionname)
 Begin profiling of a function.
 wfProfileOut ($functionname= 'missing')
 Stop profiling of a function.

Detailed Description

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.


Function Documentation

wfProfileIn ( functionname)

Begin profiling of a function.

Parameters:
string$functionnamename of the function we will profile

Definition at line 33 of file Profiler.php.

References Profiler\$__instance, and Profiler\instance().

Referenced by MappedDiff\__construct(), WordLevelDiff\__construct(), DiffFormatter\_block(), TableDiffFormatter\_changed(), Diff\_check(), _DiffEngine\_shift_boundaries(), WordLevelDiff\_split(), StubObject\_unstub(), DBABagOStuff\add(), LinkCache\addLinkObj(), WatchedItem\addWatch(), Parser\argSubstitution(), FileOpBatch\attempt(), SkinTemplate\buildContentActionUrls(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), Skin\buildSidebar(), Profiler\calculateOverhead(), DBABagOStuff\cas(), UploadBase\checkWarnings(), Block\chooseBlock(), WordLevelDiff\closing(), ViewCountUpdate\collect(), LanguageKk\convertGrammar(), EhcacheBagOStuff\delete(), DBABagOStuff\delete(), Block\deleteIfExpired(), UploadBase\detectScript(), UploadBase\detectVirus(), _DiffEngine\diff(), _DiffEngine\diff_local(), Parser\doHeadings(), UserCache\doQuery(), LinkBatch\doQuery(), DjVuHandler\doTransform(), HTMLCacheUpdate\doUpdate(), DeferredUpdates\doUpdates(), Xml\elementClean(), RunJobs\execute(), CurlHttpRequest\execute(), PhpHttpRequest\execute(), LinkBatch\executeInto(), SpecialPageFactory\executePath(), TempFSFile\factory(), Article\fetchContentObject(), DiffFormatter\format(), Linker\formatComment(), FeedUtils\formatDiffRow(), Linker\formatHiddenCategories(), SpecialProtectedtitles\formatRow(), SpecialProtectedpages\formatRow(), Linker\formatTemplates(), CoreParserFunctions\gender(), ChangesFeed\generateFeed(), MessageBlobStore\get(), EhcacheBagOStuff\get(), DBABagOStuff\get(), MemcachedPeclBagOStuff\get(), ParserCache\get(), JobQueueAggregator\getAllReadyWikiQueues(), Block\getBlocksForIPList(), Skin\getCachedNotice(), Title\getCascadeProtectionSources(), LoadBalancer\getConnection(), CreditsAction\getCredits(), User\getEditCount(), Title\getLinkURL(), SpecialPageFactory\getList(), DjVuHandler\getMetaTree(), ResourceLoaderFileModule\getModifiedTime(), ResourceLoaderStartUpModule\getModuleRegistrations(), MemcachedPeclBagOStuff\getMulti(), Skin\getNamespaceNotice(), FSFile\getProps(), LoadBalancer\getReaderIndex(), UploadBase\getRealPath(), FSFile\getSha1Base36(), Skin\getSiteNotice(), Skin\getSkinNames(), ProtectedTitlesPager\getStartBody(), LogPager\getStartBody(), MergeHistoryPager\getStartBody(), ApiTokens\getTokenTypes(), BaseTemplate\getToolbox(), Title\getUserPermissionsErrorsInternal(), SpecialVersion\getVersion(), SpecialVersion\getVersionLinked(), EditPage\importFormData(), DBABagOStuff\incr(), Skin\initPage(), Linker\link(), Linker\linkAttribs(), Linker\linkUrl(), MagicWord\load(), OldLocalFile\loadExtraFromDB(), OldLocalFile\loadFromDB(), MediaWiki\main(), Linker\makeBrokenImageLinkObj(), Linker\makeBrokenLinkObj(), LinkHolderArray\makeHolder(), Linker\makeKnownLinkObj(), Linker\makeLinkObj(), LanguageBe_tarask\normalizeForSearch(), LanguageYue\normalizeForSearch(), LanguageZh_hans\normalizeForSearch(), LanguageZh\normalizeForSearch(), Linker\normalizeSubpageLink(), SearchMySQL\normalizeText(), JobQueueAggregator\notifyQueueEmpty(), JobQueueAggregator\notifyQueueNonEmpty(), WatchAction\onSubmit(), UnwatchAction\onSubmit(), CreditsAction\onView(), HistoryAction\onView(), LoadBalancer\openConnection(), LoadBalancer\openForeignConnection(), WordLevelDiff\orig(), OutputPage\output(), SkinTemplate\outputPage(), InfoAction\pageCounts(), SiteStats\pagesInNs(), UploadBase\performUpload(), BlockListPager\preprocessResults(), ApiBase\profileDBIn(), ApiBase\profileIn(), JobQueueAggregator\purge(), BacklinkCache\queryLinks(), SvgHandler\rasterize(), MWCryptRand\realGenerate(), EnhancedChangesList\recentChangesBlock(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), OldChangesList\recentChangesLine(), EnhancedChangesList\recentChangesLine(), Parser\recursivePreprocess(), Sanitizer\removeHTMLcomments(), Sanitizer\removeHTMLtags(), WatchedItem\removeWatch(), LinkHolderArray\replace(), ReplacementArray\replace(), LinkHolderArray\replaceInternal(), LinkHolderArray\replaceInterwiki(), WikitextContent\replaceSection(), LinkHolderArray\replaceText(), Http\request(), DjVuImage\retrieveMetaData(), JpegHandler\rotate(), BitmapHandler\rotate(), Hooks\run(), RefreshLinksJob\runForTitleInternal(), EhcacheBagOStuff\set(), DBABagOStuff\set(), SkinTemplate\setupTemplateForOutput(), SpecialSearch\showResults(), LoadBalancer\sleep(), UploadBase\stashFile(), StreamFile\stream(), BitmapHandler\transformCustom(), BitmapHandler\transformImageMagick(), MediaWiki_I18N\translate(), StripState\unstripType(), OldLocalFile\upgradeRow(), UploadBase\verifyFile(), UploadBase\verifyMimeType(), UploadBase\verifyPartialFile(), UploadBase\verifyUpload(), LoadBalancer\waitFor(), LoadBalancer\waitForAll(), wfIsBadImage(), and wfMsgReal().

wfProfileOut ( functionname = 'missing')

Stop profiling of a function.

Parameters:
string$functionnamename of the function we have profiled

Definition at line 46 of file Profiler.php.

References Profiler\$__instance, and Profiler\instance().

Referenced by MappedDiff\__construct(), WordLevelDiff\__construct(), DiffFormatter\_block(), TableDiffFormatter\_changed(), Diff\_check(), _DiffEngine\_shift_boundaries(), WordLevelDiff\_split(), StubObject\_unstub(), DBABagOStuff\add(), LinkCache\addLinkObj(), WatchedItem\addWatch(), Parser\argSubstitution(), FileOpBatch\attempt(), SkinTemplate\buildContentActionUrls(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), Skin\buildSidebar(), Profiler\calculateOverhead(), DBABagOStuff\cas(), UploadBase\checkWarnings(), Block\chooseBlock(), WordLevelDiff\closing(), ViewCountUpdate\collect(), LanguageKk\convertGrammar(), EhcacheBagOStuff\delete(), DBABagOStuff\delete(), Block\deleteIfExpired(), UploadBase\detectScript(), UploadBase\detectVirus(), _DiffEngine\diff(), _DiffEngine\diff_local(), Parser\doHeadings(), UserCache\doQuery(), LinkBatch\doQuery(), DjVuHandler\doTransform(), HTMLCacheUpdate\doUpdate(), DeferredUpdates\doUpdates(), Xml\elementClean(), RunJobs\execute(), CurlHttpRequest\execute(), PhpHttpRequest\execute(), LinkBatch\executeInto(), SpecialPageFactory\executePath(), TempFSFile\factory(), Article\fetchContentObject(), DiffFormatter\format(), Linker\formatComment(), FeedUtils\formatDiffRow(), SpecialProtectedtitles\formatRow(), SpecialProtectedpages\formatRow(), Linker\formatTemplates(), CoreParserFunctions\gender(), ChangesFeed\generateFeed(), MessageBlobStore\get(), EhcacheBagOStuff\get(), DBABagOStuff\get(), MemcachedPeclBagOStuff\get(), ParserCache\get(), JobQueueAggregator\getAllReadyWikiQueues(), Block\getBlocksForIPList(), Skin\getCachedNotice(), Title\getCascadeProtectionSources(), LoadBalancer\getConnection(), CreditsAction\getCredits(), User\getEditCount(), Title\getLinkURL(), SpecialPageFactory\getList(), DjVuHandler\getMetaTree(), ResourceLoaderFileModule\getModifiedTime(), ResourceLoaderStartUpModule\getModuleRegistrations(), MemcachedPeclBagOStuff\getMulti(), Skin\getNamespaceNotice(), FSFile\getProps(), LoadBalancer\getReaderIndex(), UploadBase\getRealPath(), FSFile\getSha1Base36(), Skin\getSiteNotice(), Skin\getSkinNames(), ProtectedTitlesPager\getStartBody(), LogPager\getStartBody(), MergeHistoryPager\getStartBody(), ApiTokens\getTokenTypes(), BaseTemplate\getToolbox(), Title\getUserPermissionsErrorsInternal(), SpecialVersion\getVersion(), SpecialVersion\getVersionLinked(), EditPage\importFormData(), DBABagOStuff\incr(), Skin\initPage(), Linker\link(), Linker\linkAttribs(), Linker\linkUrl(), MagicWord\load(), OldLocalFile\loadExtraFromDB(), OldLocalFile\loadFromDB(), MediaWiki\main(), Linker\makeBrokenImageLinkObj(), Linker\makeBrokenLinkObj(), LinkHolderArray\makeHolder(), Linker\makeKnownLinkObj(), Linker\makeLinkObj(), LanguageBe_tarask\normalizeForSearch(), LanguageYue\normalizeForSearch(), LanguageZh_hans\normalizeForSearch(), LanguageZh\normalizeForSearch(), Linker\normalizeSubpageLink(), SearchMySQL\normalizeText(), JobQueueAggregator\notifyQueueEmpty(), JobQueueAggregator\notifyQueueNonEmpty(), WatchAction\onSubmit(), UnwatchAction\onSubmit(), CreditsAction\onView(), HistoryAction\onView(), LoadBalancer\openConnection(), LoadBalancer\openForeignConnection(), WordLevelDiff\orig(), OutputPage\output(), SkinTemplate\outputPage(), InfoAction\pageCounts(), SiteStats\pagesInNs(), UploadBase\performUpload(), BlockListPager\preprocessResults(), ApiBase\profileDBOut(), ApiBase\profileOut(), JobQueueAggregator\purge(), BacklinkCache\queryLinks(), SvgHandler\rasterize(), MWCryptRand\realGenerate(), EnhancedChangesList\recentChangesBlock(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), OldChangesList\recentChangesLine(), EnhancedChangesList\recentChangesLine(), Parser\recursivePreprocess(), Sanitizer\removeHTMLcomments(), Sanitizer\removeHTMLtags(), WatchedItem\removeWatch(), LinkHolderArray\replace(), ReplacementArray\replace(), LinkHolderArray\replaceInternal(), LinkHolderArray\replaceInterwiki(), WikitextContent\replaceSection(), LinkHolderArray\replaceText(), Http\request(), DjVuImage\retrieveMetaData(), JpegHandler\rotate(), BitmapHandler\rotate(), Hooks\run(), RefreshLinksJob\runForTitleInternal(), EhcacheBagOStuff\set(), DBABagOStuff\set(), SkinTemplate\setupTemplateForOutput(), SpecialSearch\showResults(), LoadBalancer\sleep(), UploadBase\stashFile(), StreamFile\stream(), BitmapHandler\transformCustom(), BitmapHandler\transformImageMagick(), MediaWiki_I18N\translate(), StripState\unstripType(), OldLocalFile\upgradeRow(), UploadBase\verifyFile(), UploadBase\verifyMimeType(), UploadBase\verifyPartialFile(), UploadBase\verifyUpload(), LoadBalancer\waitFor(), LoadBalancer\waitForAll(), wfIsBadImage(), and wfMsgReal().