Cheetah
Public Member Functions | Public Attributes | List of all members
ChProfiler Class Reference

Public Member Functions

 __construct ($iTimeStart)
 
 output ()
 
 _logBegin ($s)
 
 _logEnd ()
 
 _appendToLog ($s)
 
 logSqlQuery ($iTime, $aSqlQuery, &$res)
 
 logModuleQuery ($iTime, $aModuleQuery)
 
 logPageOpen ($iTime)
 
 beginModule ($sType, $sHash, &$aModule, $sClassFile, $sMethod='')
 
 endModule ($sType, $sHash)
 
 beginInjection ($sId)
 
 endInjection ($sId, $sName, $sKey, $isReplace)
 
 beginPageBlock ($sName, $iBlockId)
 
 endPageBlock ($iBlockId, $isEmpty, $isCached)
 
 beginPage ($sName)
 
 endPage (&$sContent)
 
 beginTemplate ($sName, $sRand)
 
 endTemplate ($sName, $sRand, &$sContent, $isCached)
 
 beginQuery ($sSql)
 
 endQuery (&$res)
 
 beginMenu ($sName)
 
 endMenu ($sName)
 
 _getCurrentDelay ()
 
 _plankMain ()
 
 _plankTemplates ()
 
 _plankInjections ()
 
 _plankPagesBlocks ()
 
 _plankMenus ()
 
 _plankSql ()
 
 _plankModules ()
 
 _formatTime ($i, $iPrecision=3)
 
 _formatBytes ($i)
 
 _isProfilerDisabled ()
 
 _calcTime ($begin)
 
 _debugPrintArray ($mixed)
 
 _debugPrintObject ($mixed)
 
 _debugPrintAny ($mixed)
 
 _debugBackTrace ($iShifts=0)
 

Public Attributes

 $oConfig
 
 $oTemplate
 
 $aConf = array ()
 
 $_iTimeStart = 0
 
 $_aQueries = array()
 
 $_sQueryIndex = 0
 
 $_aModules = array()
 
 $_aModulesNames = array()
 
 $_aModulesLevel = 0
 
 $_sLogDateFormat = "Y-m-d H:i:s"
 
 $_sLogMaxArgLength = 64
 
 $_sLogFilename = 64
 

Detailed Description

Definition at line 24 of file ChProfiler.php.

Constructor & Destructor Documentation

◆ __construct()

ChProfiler::__construct (   $iTimeStart)

constructor

Definition at line 46 of file ChProfiler.php.

Member Function Documentation

◆ _appendToLog()

ChProfiler::_appendToLog (   $s)

Definition at line 122 of file ChProfiler.php.

◆ _calcTime()

ChProfiler::_calcTime (   $begin)

Definition at line 536 of file ChProfiler.php.

◆ _debugBackTrace()

ChProfiler::_debugBackTrace (   $iShifts = 0)

Definition at line 568 of file ChProfiler.php.

◆ _debugPrintAny()

ChProfiler::_debugPrintAny (   $mixed)

Definition at line 560 of file ChProfiler.php.

◆ _debugPrintArray()

ChProfiler::_debugPrintArray (   $mixed)

Definition at line 545 of file ChProfiler.php.

◆ _debugPrintObject()

ChProfiler::_debugPrintObject (   $mixed)

Definition at line 555 of file ChProfiler.php.

◆ _formatBytes()

ChProfiler::_formatBytes (   $i)

Definition at line 511 of file ChProfiler.php.

◆ _formatTime()

ChProfiler::_formatTime (   $i,
  $iPrecision = 3 
)

Definition at line 506 of file ChProfiler.php.

◆ _getCurrentDelay()

ChProfiler::_getCurrentDelay ( )

Definition at line 305 of file ChProfiler.php.

◆ _isProfilerDisabled()

ChProfiler::_isProfilerDisabled ( )

Definition at line 521 of file ChProfiler.php.

◆ _logBegin()

ChProfiler::_logBegin (   $s)

Definition at line 109 of file ChProfiler.php.

◆ _logEnd()

ChProfiler::_logEnd ( )

Definition at line 117 of file ChProfiler.php.

◆ _plankInjections()

ChProfiler::_plankInjections ( )

Definition at line 373 of file ChProfiler.php.

◆ _plankMain()

ChProfiler::_plankMain ( )

Definition at line 312 of file ChProfiler.php.

◆ _plankMenus()

ChProfiler::_plankMenus ( )

Definition at line 447 of file ChProfiler.php.

◆ _plankModules()

ChProfiler::_plankModules ( )

Definition at line 485 of file ChProfiler.php.

◆ _plankPagesBlocks()

ChProfiler::_plankPagesBlocks ( )

Definition at line 392 of file ChProfiler.php.

◆ _plankSql()

ChProfiler::_plankSql ( )

Definition at line 466 of file ChProfiler.php.

◆ _plankTemplates()

ChProfiler::_plankTemplates ( )

Definition at line 327 of file ChProfiler.php.

◆ beginInjection()

ChProfiler::beginInjection (   $sId)

Definition at line 195 of file ChProfiler.php.

◆ beginMenu()

ChProfiler::beginMenu (   $sName)

Definition at line 289 of file ChProfiler.php.

◆ beginModule()

ChProfiler::beginModule (   $sType,
  $sHash,
$aModule,
  $sClassFile,
  $sMethod = '' 
)

Definition at line 170 of file ChProfiler.php.

◆ beginPage()

ChProfiler::beginPage (   $sName)

Definition at line 233 of file ChProfiler.php.

◆ beginPageBlock()

ChProfiler::beginPageBlock (   $sName,
  $iBlockId 
)

Definition at line 214 of file ChProfiler.php.

◆ beginQuery()

ChProfiler::beginQuery (   $sSql)

Definition at line 268 of file ChProfiler.php.

◆ beginTemplate()

ChProfiler::beginTemplate (   $sName,
  $sRand 
)

Definition at line 250 of file ChProfiler.php.

◆ endInjection()

ChProfiler::endInjection (   $sId,
  $sName,
  $sKey,
  $isReplace 
)

Definition at line 201 of file ChProfiler.php.

◆ endMenu()

ChProfiler::endMenu (   $sName)

Definition at line 295 of file ChProfiler.php.

◆ endModule()

ChProfiler::endModule (   $sType,
  $sHash 
)

Definition at line 184 of file ChProfiler.php.

◆ endPage()

ChProfiler::endPage ( $sContent)

Definition at line 240 of file ChProfiler.php.

◆ endPageBlock()

ChProfiler::endPageBlock (   $iBlockId,
  $isEmpty,
  $isCached 
)

Definition at line 221 of file ChProfiler.php.

◆ endQuery()

ChProfiler::endQuery ( $res)

Definition at line 275 of file ChProfiler.php.

◆ endTemplate()

ChProfiler::endTemplate (   $sName,
  $sRand,
$sContent,
  $isCached 
)

Definition at line 257 of file ChProfiler.php.

◆ logModuleQuery()

ChProfiler::logModuleQuery (   $iTime,
  $aModuleQuery 
)

Definition at line 143 of file ChProfiler.php.

◆ logPageOpen()

ChProfiler::logPageOpen (   $iTime)

Definition at line 156 of file ChProfiler.php.

◆ logSqlQuery()

ChProfiler::logSqlQuery (   $iTime,
  $aSqlQuery,
$res 
)

Definition at line 131 of file ChProfiler.php.

◆ output()

ChProfiler::output ( )

output profiler info

Definition at line 83 of file ChProfiler.php.

Member Data Documentation

◆ $_aModules

ChProfiler::$_aModules = array()

Definition at line 35 of file ChProfiler.php.

◆ $_aModulesLevel

ChProfiler::$_aModulesLevel = 0

Definition at line 37 of file ChProfiler.php.

◆ $_aModulesNames

ChProfiler::$_aModulesNames = array()

Definition at line 36 of file ChProfiler.php.

◆ $_aQueries

ChProfiler::$_aQueries = array()

Definition at line 32 of file ChProfiler.php.

◆ $_iTimeStart

ChProfiler::$_iTimeStart = 0

Definition at line 30 of file ChProfiler.php.

◆ $_sLogDateFormat

ChProfiler::$_sLogDateFormat = "Y-m-d H:i:s"

Definition at line 39 of file ChProfiler.php.

◆ $_sLogFilename

ChProfiler::$_sLogFilename = 64

Definition at line 41 of file ChProfiler.php.

◆ $_sLogMaxArgLength

ChProfiler::$_sLogMaxArgLength = 64

Definition at line 40 of file ChProfiler.php.

◆ $_sQueryIndex

ChProfiler::$_sQueryIndex = 0

Definition at line 33 of file ChProfiler.php.

◆ $aConf

ChProfiler::$aConf = array ()

Definition at line 28 of file ChProfiler.php.

◆ $oConfig

ChProfiler::$oConfig

Definition at line 26 of file ChProfiler.php.

◆ $oTemplate

ChProfiler::$oTemplate

Definition at line 26 of file ChProfiler.php.


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