MediaWiki  REL1_20
BenchmarkHooks Class Reference

Maintenance script that benchmarks MediaWiki hooks. More...

Inheritance diagram for BenchmarkHooks:
Collaboration diagram for BenchmarkHooks:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 execute ()
 Do the actual work.
 test ()

Private Member Functions

 benchHooks ($trials=10)

Detailed Description

Maintenance script that benchmarks MediaWiki hooks.

Definition at line 31 of file benchmarkHooks.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Benchmarker.

Definition at line 33 of file benchmarkHooks.php.


Member Function Documentation

BenchmarkHooks::benchHooks ( trials = 10) [private]
Parameters:
$trialsint
Returns:
string

Definition at line 67 of file benchmarkHooks.php.

References wfRunHooks().

Referenced by execute().

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 38 of file benchmarkHooks.php.

References $wgHooks, benchHooks(), and Maintenance\output().

Returns:
bool

Definition at line 81 of file benchmarkHooks.php.


The documentation for this class was generated from the following file: