MediaWiki
REL1_24
|
Maintenance script to benchmark how long it takes to parse a given title at an optionally specified timestamp. More...
Public Member Functions | |
__construct () | |
execute () | |
getRevIdForTime (Title $title, $timestamp) | |
Fetch the ID of the revision of a Title that occurred. | |
onFetchTemplate (Parser $parser, Title $title, &$skip, &$id) | |
Hook into the parser's revision ID fetcher. | |
runParser (Revision $revision) | |
Parse the text from a given Revision. | |
Private Attributes | |
array | $idCache = array() |
Cache that maps a Title DB key to revision ID for the requested timestamp *. | |
string | $templateTimestamp = null |
MediaWiki concatenated string timestamp (YYYYMMDDHHMMSS) *. |
Maintenance script to benchmark how long it takes to parse a given title at an optionally specified timestamp.
Definition at line 33 of file benchmarkParse.php.
Reimplemented from Maintenance.
Definition at line 38 of file benchmarkParse.php.
Reimplemented from Maintenance.
Definition at line 55 of file benchmarkParse.php.
BenchmarkParse::getRevIdForTime | ( | Title $ | title, |
$ | timestamp | ||
) |
Fetch the ID of the revision of a Title that occurred.
Title | $title | |
string | $timestamp |
Definition at line 118 of file benchmarkParse.php.
BenchmarkParse::onFetchTemplate | ( | Parser $ | parser, |
Title $ | title, | ||
&$ | skip, | ||
&$ | id | ||
) |
Hook into the parser's revision ID fetcher.
Make sure that the parser only uses revisions around the specified timestamp.
Definition at line 157 of file benchmarkParse.php.
BenchmarkParse::runParser | ( | Revision $ | revision | ) |
Parse the text from a given Revision.
Revision | $revision |
Definition at line 142 of file benchmarkParse.php.
Cache that maps a Title DB key to revision ID for the requested timestamp *.
Definition at line 36 of file benchmarkParse.php.
string BenchmarkParse::$templateTimestamp = null [private] |
MediaWiki concatenated string timestamp (YYYYMMDDHHMMSS) *.
Definition at line 34 of file benchmarkParse.php.