MediaWiki  REL1_22
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 ()
 Get the function name of the current profiling section.
 getOutput ()
 Returns a profiling output to be stored in debug file.
 isPersistent ()
 Return whether this profiler stores data.
 isStub ()
 Return whether this a stub profiler.
 logData ()
 Log the whole profiling data into the database.
 profileIn ($fn)
 Called by wfProfieIn()
 profileOut ($fn)
 Called by wfProfieOut()
 transactionWritingIn ($server, $db)
 Mark a DB as in a transaction with one or more writes pending.
 transactionWritingOut ($server, $db)
 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 39 of file ProfilerStub.php.

Get the function name of the current profiling section.

Returns:

Reimplemented from Profiler.

Definition at line 41 of file ProfilerStub.php.

Returns a profiling output to be stored in debug file.

Returns:
String

Reimplemented from Profiler.

Definition at line 38 of file ProfilerStub.php.

Return whether this profiler stores data.

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

Reimplemented from Profiler.

Definition at line 33 of file ProfilerStub.php.

Return whether this a stub profiler.

Returns:
Boolean

Reimplemented from Profiler.

Definition at line 30 of file ProfilerStub.php.

Log the whole profiling data into the database.

Reimplemented from Profiler.

Definition at line 40 of file ProfilerStub.php.

ProfilerStub::profileIn ( functionname)

Called by wfProfieIn()

Parameters:
$functionnameString

Reimplemented from Profiler.

Definition at line 36 of file ProfilerStub.php.

ProfilerStub::profileOut ( functionname)

Called by wfProfieOut()

Parameters:
$functionnameString

Reimplemented from Profiler.

Definition at line 37 of file ProfilerStub.php.

ProfilerStub::transactionWritingIn ( server,
db 
)

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

Reimplemented from Profiler.

Definition at line 42 of file ProfilerStub.php.

ProfilerStub::transactionWritingOut ( server,
db 
)

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

Reimplemented from Profiler.

Definition at line 43 of file ProfilerStub.php.


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