PHP Class Pimcore\Db\Profiler

Inheritance: extends Zend_Db_Profiler
Show file Open project: pimcore/pimcore

Protected Properties

Property Type Description
$_label string The original label for this profiler.
$_label_template string The label template for this profiler
$_message Zend_Wildfire_Plugin_FirePhp_TableMessage The message envelope holding the profiling summary
$_totalElapsedTime float The total time taken for all profiled queries.
$_totalQueries integer
$connectionId integer
$logFile resource
$queries array

Public Methods

Method Description
__construct ( null $label = null )
__destruct ( )
getConnectionId ( ) : integer
queryEnd ( integer $queryId ) : void Intercept the query end and log the profiling data.
setConnectionId ( integer $connectionId )
setEnabled ( boolean $enable ) : Zend_Db_Profiler Enable or disable the profiler. If $enable is false, the profiler is disabled and will not log any queries sent to it.

Protected Methods

Method Description
updateMessageLabel ( ) : void Update the label of the message holding the profile info.

Method Details

__construct() public method

public __construct ( null $label = null )
$label null

__destruct() public method

public __destruct ( )

getConnectionId() public method

public getConnectionId ( ) : integer
return integer

queryEnd() public method

Intercept the query end and log the profiling data.
public queryEnd ( integer $queryId ) : void
$queryId integer
return void

setConnectionId() public method

public setConnectionId ( integer $connectionId )
$connectionId integer

setEnabled() public method

Enable or disable the profiler. If $enable is false, the profiler is disabled and will not log any queries sent to it.
public setEnabled ( boolean $enable ) : Zend_Db_Profiler
$enable boolean
return Zend_Db_Profiler Provides a fluent interface

updateMessageLabel() protected method

Update the label of the message holding the profile info.
protected updateMessageLabel ( ) : void
return void

Property Details

$_label protected property

The original label for this profiler.
protected string $_label
return string

$_label_template protected property

The label template for this profiler
protected string $_label_template
return string

$_message protected property

The message envelope holding the profiling summary
protected Zend_Wildfire_Plugin_FirePhp_TableMessage $_message
return Zend_Wildfire_Plugin_FirePhp_TableMessage

$_totalElapsedTime protected property

The total time taken for all profiled queries.
protected float $_totalElapsedTime
return float

$_totalQueries protected property

protected int $_totalQueries
return integer

$connectionId protected property

protected int $connectionId
return integer

$logFile protected property

protected resource $logFile
return resource

$queries protected property

protected array $queries
return array