MediaWiki  REL1_24
ProfilerStub Class Reference

Stub profiler that does nothing. More...

Inheritance diagram for ProfilerStub:
Collaboration diagram for ProfilerStub:

List of all members.

Public Member Functions

 close ()
 Close opened profiling sections.
 getCurrentSection ()
 getOutput ()
 Returns a profiling output to be stored in debug file.
 getRawData ()
 isPersistent ()
 Return whether this profiler stores data.
 isStub ()
 Return whether this a stub profiler.
 logData ()
 Log the data to some store or even the page output.
 profileIn ($fn)
 Called by wfProfieIn()
 profileOut ($fn)
 Called by wfProfieOut()
 transactionWritingIn ($server, $db, $id= '')
 Mark a DB as in a transaction with one or more writes pending.
 transactionWritingOut ($server, $db, $id= '')
 Mark a DB as no longer in a transaction.

Detailed Description

Stub profiler that does nothing.

Definition at line 29 of file ProfilerStub.php.


Member Function Documentation

Close opened profiling sections.

Reimplemented from Profiler.

Definition at line 47 of file ProfilerStub.php.

Definition at line 53 of file ProfilerStub.php.

Returns a profiling output to be stored in debug file.

Returns:
string

Reimplemented from Profiler.

Definition at line 44 of file ProfilerStub.php.

Returns:
array

Reimplemented from Profiler.

Definition at line 63 of file ProfilerStub.php.

References array().

Return whether this profiler stores data.

Called by Parser::braceSubstitution. If true, the parser will not generate per-title profiling sections, to avoid overloading the profiling data collector.

See also:
Profiler::logData()
Returns:
bool

Reimplemented from Profiler.

Definition at line 34 of file ProfilerStub.php.

Return whether this a stub profiler.

Returns:
bool

Reimplemented from Profiler.

Definition at line 30 of file ProfilerStub.php.

Log the data to some store or even the page output.

Reimplemented from Profiler.

Definition at line 50 of file ProfilerStub.php.

ProfilerStub::profileIn ( functionname)

Called by wfProfieIn()

Parameters:
string$functionname

Reimplemented from Profiler.

Definition at line 38 of file ProfilerStub.php.

ProfilerStub::profileOut ( functionname)

Called by wfProfieOut()

Parameters:
string$functionname

Reimplemented from Profiler.

Definition at line 41 of file ProfilerStub.php.

ProfilerStub::transactionWritingIn ( server,
db,
id = '' 
)

Mark a DB as in a transaction with one or more writes pending.

Note that there can be multiple connections to a single DB.

Parameters:
string$serverDB server
string$dbDB name
string$idResource ID string of connection

Reimplemented from Profiler.

Definition at line 57 of file ProfilerStub.php.

ProfilerStub::transactionWritingOut ( server,
db,
id = '' 
)

Mark a DB as no longer in a transaction.

This will check if locks are possibly held for longer than needed and log any affected transactions to a special DB log. Note that there can be multiple connections to a single DB.

Parameters:
string$serverDB server
string$dbDB name
string$idResource ID string of connection

Reimplemented from Profiler.

Definition at line 60 of file ProfilerStub.php.


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