MediaWiki fundraising/REL1_35
|
memcached diagnostic tool More...
Go to the source code of this file.
Functions | |
mccGetHelp ( $command) | |
mccShowUsage () | |
Show this command line tool usage. | |
Variables | |
if( $line===false) | $args = explode( ' ', $line ) |
$cache = $options['cache'] ?? null | |
$command = array_shift( $args ) | |
$debug = isset( $options['debug'] ) | |
$help = isset( $options['help'] ) | |
$line = Maintenance::readconsole() | |
if( $help) | $mcc |
$optionsWithArgs = [ 'cache' ] | |
$optionsWithoutArgs | |
$quit = false | |
$showhelp = false | |
do | |
if( $cache) elseif($wgMainCacheType===CACHE_MEMCACHED) elseif(isset( $wgObjectCaches[$wgMainCacheType]['servers'])) | else |
memcached diagnostic tool
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
Definition in file mcc.php.
mccGetHelp | ( | $command | ) |
mccShowUsage | ( | ) |
Show this command line tool usage.
Definition at line 62 of file mcc.php.
References mccGetHelp(), and print.
if ($line===false) $args = explode( ' ', $line ) |
Definition at line 124 of file mcc.php.
Referenced by StubObject\__call(), MemcachedClient\__construct(), DumpBackup\__construct(), BackupDumper\__construct(), TextPassDumper\__construct(), MediaTransformError\__construct(), PPTemplateFrame_Hash\__toString(), StubObject\_call(), LogPage\actionText(), HTMLForm\addButton(), CachedAction\addCachedHTML(), SpecialCachedPage\addCachedHTML(), OutputPage\addWikiMsg(), OutputPage\addWikiMsgArray(), ArrayUtils\arrayDiffAssocRecursive(), Parser\braceSubstitution(), MemoizedCallable\call(), Xhprof\callAny(), MediaWiki\HookContainer\HookContainer\callLegacyHook(), MediaWiki\Auth\AuthManager\callMethodOnProviders(), Parser\callParserFunction(), MediaWiki\Auth\AuthManager\checkAccountCreatePermissions(), WikiPage\commitRollback(), SearchEngineFactory\create(), LayeredParameterizedPassword\crypt(), Wikimedia\Rdbms\Database\deadlockLoop(), Wikimedia\Rdbms\DatabaseSqlite\deadlockLoop(), RecompressTracked\dispatch(), RecompressTracked\dispatchToChild(), RecompressTracked\doAllOrphans(), DeleteOldRevisions\doDelete(), MultiWriteBagOStuff\doWrite(), Xhprof\enable(), Xml\encodeJsCall(), MediaWiki\Shell\Shell\escape(), SpecialEditWatchlist\execute(), ApiQueryAllMessages\execute(), CommandLineInc\execute(), RecompressTracked\executeChild(), Wikimedia\Rdbms\LBFactory\forEachLBCallMethod(), Http\get(), CachedAction\getCachedValue(), CacheHelper\getCachedValue(), SpecialCachedPage\getCachedValue(), WebInstaller\getHelpBox(), FileRepo\getLocalCacheKey(), ForeignDBRepo\getSharedCacheKey(), ForeignDBViaLBRepo\getSharedCacheKey(), LocalRepo\getSharedCacheKey(), SyntaxHighlight\highlight(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\if(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\ifeq(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\iferror(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\ifexist(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\ifexpr(), PPFrame_Hash\implode(), PPFrame_Hash\implodeWithFlags(), MemoizedCallable\invokeArgs(), Maintenance\loadParamsAndArgs(), Maintenance\loadWithArgv(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\localTime(), CachedBagOStuff\makeKeyInternal(), MediumSpecificBagOStuff\makeKeyInternal(), MemcachedBagOStuff\makeKeyInternal(), MultiWriteBagOStuff\makeKeyInternal(), WinCacheBagOStuff\makeKeyInternal(), SqlBagOStuff\makeKeyInternal(), FindBadBlobs\markBlob(), PPFrame_Hash\newChild(), Preprocessor_Hash\newCustomFrame(), RecompressTracked\newFromCommandLine(), FileBackend\newStatus(), MediaWiki\Site\MediaWikiPageNameNormalizer\normalizePageName(), MediaWiki\HookContainer\HookRunner\onAutopromoteCondition(), ComposerPhpunitXmlCoverageEdit\onEvent(), Message\params(), MediaWiki\Shell\Command\params(), MediaWiki\Shell\FirejailCommand\params(), SyntaxHighlight\parserHook(), SyntaxHighlight\parserHookSource(), LayeredParameterizedPassword\partialCrypt(), TemplateParser\processTemplate(), SpecialUpload\processVerificationError(), JobQueueRedis\pushBlobs(), Wikimedia\ParamValidator\Util\UploadedFileStream\quietCall(), Sanitizer\removeHTMLtags(), ImportReporter\reportLogItem(), Hooks\run(), MysqlMaintenance\runMysql(), Hooks\runWithoutAbort(), MWHttpRequest\setData(), LogEventsList\showLogExtract(), SpecialUpload\showUploadWarning(), LocalRepo\skipWriteOperationIfSha1(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\switch(), CoreParserFunctions\tagObj(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\time(), MediaWiki\Shell\Command\unsafeParams(), PPFrame_Hash\virtualBracketedImplode(), PPFrame_Hash\virtualImplode(), wfEscapeShellArg(), wfForbidden(), wfForeignMemcKey(), wfMemcKey(), wfMergeErrorArrays(), wfMsgReplaceArgs(), OutputPage\wrapWikiMsg(), and DatabaseUpdater\writeSchemaUpdateFile().
$cache = $options['cache'] ?? null |
Definition at line 33 of file mcc.php.
Referenced by CryptHKDF\__construct(), TemplateParser\__construct(), ParserCache\__construct(), MediaWiki\BadFileLookup\__construct(), LinkCache\__construct(), MapCacheLRU\__serialize(), Pingback\acquireLock(), LinkCache\addLinkObj(), LinkBatch\addResultToCache(), MediaWiki\Auth\AuthManager\autoCreateUser(), Preprocessor\cacheGetTree(), FileCacheBase\cacheMissKey(), Preprocessor\cacheSetTree(), MessageBlobStore\clearGlobalCacheEntry(), User\clearSharedCache(), ResourceLoaderFileModule\compileLessString(), MediaWiki\Auth\AuthManager\continueAccountCreation(), LanguageConverter\convertNamespace(), MultiWriteBagOStuff\deleteObjectsExpiringBefore(), UsersPager\doBatchLookups(), MultiWriteBagOStuff\doWrite(), EmployerSearchAPI\execute(), ClearInterwikiCache\execute(), McTest\execute(), LinkBatch\executeInto(), FormatMetadata\fetchExtendedMetadata(), Message\fetchMessage(), ResourceLoader\filter(), MultiWriteBagOStuff\get(), MessageCache\getAllMessageKeys(), MessageBlobStore\getBlobs(), JobQueueGroup\getCachedConfigVar(), Skin\getCachedNotice(), User\getCacheKey(), InfoAction\getCacheKey(), ParserCache\getCacheStorage(), WikiMap\getCanonicalServerInfoForAllWikis(), ChangesListSpecialPage\getChangeTagListSummary(), WikiPage\getContentModel(), SpecialVersion\getCreditsForExtension(), File\getDescriptionText(), ForeignDBFile\getDescriptionText(), DifferenceEngine\getDiffBody(), DjVuHandler\getDimensionInfo(), WANCacheReapUpdate\getEventAffectedKeys(), IcuCollation\getFirstLetterData(), UsersPager\getGroupMemberships(), ApiHelp\getHelp(), ExtensionRegistry\getLazyLoadedAttribute(), ObjectCache\getLocalServerInstance(), TransformationalImageHandler\getMagickVersion(), Wikimedia\Rdbms\DatabaseMysqlBase\getMasterServerInfo(), FileCacheBase\getMissesRecent(), WikiPage\getMutableCacheKeys(), User\getMutableCacheKeys(), LinkCache\getMutableCacheKeys(), ContentHandler\getParserOutputForIndexing(), Wikimedia\UUID\GlobalIdGenerator\getSequentialPerNodeIDs(), Wikimedia\Rdbms\DatabaseMysqlBase\getServerVersion(), Wikimedia\Rdbms\LoadMonitor\getStatesCacheKey(), User\getTouched(), DependencyWrapper\getValueFromCache(), Gateway_Extras_CustomFilters_MinFraud\healthCheck(), SyntaxHighlight\highlight(), FileCacheBase\incrMissesRecent(), Parser\interwikiTransclude(), InfoAction\invalidateCache(), ResourceLoaderWikiModule\invalidateModuleCache(), LinkCache\invalidateTitle(), MessageCache\isCacheExpired(), MediaWiki\Block\DatabaseBlock\isWhitelistedFromAutoblocks(), SiteStats\jobs(), ChangeTags\listExplicitlyDefinedTags(), ChangeTags\listSoftwareActivatedTags(), ChangeTags\listSoftwareDefinedTags(), MessageCache\load(), LocalFile\loadFromCache(), User\loadFromCache(), MessageCache\loadFromDB(), MessageCache\loadFromDBWithLock(), ExtensionRegistry\loadFromQueue(), Title\loadRestrictions(), LanguageConverter\loadTables(), MediaWiki\main(), ExtensionRegistry\makeCacheKey(), ObjectCache\newAnything(), ResourceFileCache\newFromContext(), SiteStats\numberingroup(), MediaWiki\HookContainer\HookRunner\onLocalisationCacheRecache(), MediaWiki\HookContainer\HookRunner\onLocalisationCacheRecacheFallback(), MediaWiki\HookContainer\HookRunner\onUsersPagerDoBatchLookups(), HistoryAction\onView(), InfoAction\pageCounts(), CoreParserFunctions\pagesincategory(), SiteStats\pagesInNs(), User\pingLimiter(), ResourceLoaderWikiModule\preloadTitleInfo(), User\purge(), WikiPage\purgeInterwikiCheckKey(), Article\purgePatrolFooterCache(), ChangeTags\purgeTagCacheAll(), JobQueueGroup\push(), JobQueueGroup\queuesHaveJobs(), MessageBlobStore\recacheMessageBlob(), MessageCache\refreshAndReplaceInternal(), ManageJobs\repushAbandoned(), WatchedItemStore\resetNotificationTimestamp(), MediaWiki\run(), ResourceLoader\saveModuleDependenciesInternal(), ExtensionRegistry\saveToCache(), MessageCache\saveToCaches(), MessageCache\saveToLocalCache(), WANObjectCache\set(), MultiWriteBagOStuff\setDebug(), MultiWriteBagOStuff\setMockTime(), MessageCache\setValidationHash(), Article\showPatrolFooter(), DependencyWrapper\storeToCache(), ChangeTags\tagUsageStatistics(), MapCacheLRU\toArray(), User\touch(), WikiPage\triggerOpportunisticLinksUpdate(), Article\tryFileCache(), ResourceLoaderModule\validateScriptFile(), wfGenerateThumbnail(), wfIsDebugRawPage(), and MediaWiki\Session\PHPSessionHandler\write().
$command = array_shift( $args ) |
Definition at line 125 of file mcc.php.
Referenced by MemcachedClient\_set(), MediaWiki\Shell\FirejailCommand\buildFinalCommand(), PostgresUpdater\changeFkeyDeferrable(), MediaWiki\Shell\CommandFactory\create(), UploadBase\detectVirus(), PostgresUpdater\dropFkey(), MWDocGen\execute(), JobQueue\factoryJob(), ExecutableFinder\findExecutable(), mccGetHelp(), ResourceLoaderImage\rasterize(), Maintenance\readlineEmulation(), JpegHandler\rotate(), SevenZipStream\stream_open(), and JpegHandler\swapICCProfile().
$debug = isset( $options['debug'] ) |
Definition at line 31 of file mcc.php.
Referenced by MWDebug\getDebugInfo(), DonationLoggerFactory\getLoggerFromParams(), WikiImporter\setDebug(), DerivativeResourceLoaderContext\setDebug(), JobRunner\setDebugHandler(), Exif\validate(), and wfThumbError().
$help = isset( $options['help'] ) |
Definition at line 32 of file mcc.php.
Referenced by ApiHelp\getHelpInternal(), HTMLFormField\getOOUI(), UploadForm\getSourceSection(), ApiMain\modifyHelp(), and MediaWiki\Api\ApiHookRunner\onAPIHelpModifyOutput().
$line = Maintenance::readconsole() |
Definition at line 119 of file mcc.php.
Referenced by MemcachedClient\_incrdecr(), MemcachedClient\_set(), TableDiffFormatter\added(), TableDiffFormatter\addedLine(), Skin\addToSidebarPlain(), DatabaseUpdater\appendLine(), SpecialRevisionDelete\buildCheckBoxes(), Licenses\buildLine(), OrderedStreamingForkController\consume(), TableDiffFormatter\context(), TableDiffFormatter\contextLine(), DjVuImage\convertDumpToXML(), DatabaseUpdater\copyFile(), TableDiffFormatter\deleted(), TableDiffFormatter\deletedLine(), Wikimedia\StaticArrayWriter\encode(), Installer\envCheckShellLocale(), UpdateLexerList\execute(), MediaWiki\Rest\EntryPoint\execute(), DeleteBatch\execute(), FetchText\execute(), GenerateNormalizerDataAr\execute(), MoveBatch\execute(), MwSql\execute(), RecompressTracked\executeChild(), ArrayDiffFormatter\format(), GatewayAdapter\formatXmlString(), GenerateCollationData\generateFirstChars(), ApiCSPReport\generateLogLine(), UploadBase\getFilenamePrefixBlacklist(), MWDebug\getHTMLDebugLog(), MWExceptionHandler\getLogMessage(), MWExceptionHandler\getLogNormalMessage(), FormatMetadata\getVisibleFields(), Parser\handleAllQuotes(), MWExceptionHandler\handleError(), MWExceptionHandler\handleFatalError(), Parser\handleInternalLinks2(), Parser\handleTables(), SearchHighlighter\highlightSimple(), SearchHighlighter\highlightText(), MediaWiki\BadFileLookup\isBadFile(), MediaWiki\Block\DatabaseBlock\isWhitelistedFromAutoblocks(), DiffFormatter\lines(), UnifiedDiffFormatter\lines(), Wikimedia\UUID\GlobalIdGenerator\load(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\loadCustomCaptions(), MediaWiki\Search\SearchWidgets\SimpleSearchResultSetWidget\loadCustomCaptions(), Licenses\makeLines(), FormattedRCFeed\notify(), MediaWiki\HookContainer\HookRunner\onImagePageFileHistoryLine(), QueryPage\outputResults(), ForeignResourceManager\parseBasicYaml(), DjVuImage\parseFormDjvu(), SearchHighlighter\process(), SquidPurgeClient\processHeaderLine(), SquidPurgeClient\processStatusLine(), Maintenance\readlineEmulation(), XmlTypeCheck\readNext(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), Parser\renderImageGallery(), RedisPubSubFeedEngine\send(), UDPRCFeedEngine\send(), SpecialFileDuplicateSearch\showList(), Wikimedia\Rdbms\Database\sourceStream(), WordLevelDiff\split(), SearchHighlighter\splitAndAdd(), MwSql\sqlDoQuery(), OrderedStreamingForkController\updateAvailableSockets(), wfBacktrace(), and TableDiffFormatter\wrapLine().
if ($help) $mcc |
Definition at line 39 of file mcc.php.
Referenced by McTest\benchmarkMultiKeyOpsDeferredBlocking(), McTest\benchmarkMultiKeyOpsImmediateBlocking(), McTest\benchmarkSingleKeyOps(), and McTest\execute().