TYPO3 CMS  TYPO3_7-6
adodb_perf Class Reference
Inheritance diagram for adodb_perf:
perf_db2 perf_informix perf_mssql perf_mssqlnative perf_mysql perf_postgres

Public Member Functions

 _CPULoad ()
 
 MemInfo ()
 
 CPULoad ()
 
 Tracer ($sql)
 
 Explain ($sql, $partial=false)
 
 InvalidSQL ($numsql=10)
 
 _SuspiciousSQL ($numsql=10)
 
 CheckMemory ()
 
 SuspiciousSQL ($numsql=10)
 
 ExpensiveSQL ($numsql=10)
 
 _ExpensiveSQL ($numsql=10)
 
 DBParameter ($param)
 
 PollParameters ()
 
 _DBParameter ($sql)
 
 WarnCacheRatio ($val)
 
 clearsql ()
 
 UI ($pollsecs=5)
 
 Poll ($secs=5)
 
 HealthCheckCLI ()
 
 HealthCheck ($cli=false)
 
 Tables ($orderby='1')
 
 CreateLogTable ()
 
 DoSQLForm ()
 
 SplitSQL ($sql)
 
 undomq ($m)
 
 OptimizeTables ()
 
 OptimizeTable ( $table, $mode=ADODB_OPT_LOW)
 
 optimizeDatabase ()
 

Static Public Member Functions

static table ($newtable=false)
 

Public Attributes

 $conn
 
 $color = '#F0F0F0'
 
 $table = '<table border=1 bgcolor=white>'
 
 $titles = '<tr><td><b>Parameter</b></td><td><b>Value</b></td><td><b>Description</b></td></tr>'
 
 $warnRatio = 90
 
 $tablesSQL = false
 
 $cliFormat = "%32s => %s \r\n"
 
 $sql1 = 'sql1'
 
 $explain = true
 
 $helpurl = '<a href="http://adodb.sourceforge.net/docs-adodb.htm#logsql">LogSQL help</a>'
 
 $createTableSQL = false
 
 $maxLength = 2000
 
 $_lastLoad
 

Detailed Description

Member Function Documentation

◆ _CPULoad()

adodb_perf::_CPULoad ( )
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 244 of file adodb-perf.inc.php.

Referenced by CPULoad().

◆ _DBParameter()

adodb_perf::_DBParameter (   $sql)

◆ _ExpensiveSQL()

adodb_perf::_ExpensiveSQL (   $numsql = 10)
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 526 of file adodb-perf.inc.php.

References $maxLength, $rs, $sql, $sql1, and table().

Referenced by ExpensiveSQL().

◆ _SuspiciousSQL()

adodb_perf::_SuspiciousSQL (   $numsql = 10)
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 447 of file adodb-perf.inc.php.

References $maxLength, $rs, $sql, $sql1, and table().

Referenced by SuspiciousSQL().

◆ CheckMemory()

adodb_perf::CheckMemory ( )
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 504 of file adodb-perf.inc.php.

Referenced by UI().

◆ clearsql()

adodb_perf::clearsql ( )
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 665 of file adodb-perf.inc.php.

References table().

Referenced by UI().

◆ CPULoad()

adodb_perf::CPULoad ( )
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 354 of file adodb-perf.inc.php.

References $_lastLoad, and _CPULoad().

Referenced by Poll().

◆ CreateLogTable()

adodb_perf::CreateLogTable ( )
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 905 of file adodb-perf.inc.php.

References $sql, and table().

◆ DBParameter()

adodb_perf::DBParameter (   $param)

◆ DoSQLForm()

adodb_perf::DoSQLForm ( )
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 917 of file adodb-perf.inc.php.

References $rs, $sql, rs2html(), SplitSQL(), table(), and undomq().

Referenced by UI().

◆ ExpensiveSQL()

adodb_perf::ExpensiveSQL (   $numsql = 10)
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 515 of file adodb-perf.inc.php.

References _ExpensiveSQL().

Referenced by UI().

◆ Explain()

adodb_perf::Explain (   $sql,
  $partial = false 
)

◆ HealthCheck()

adodb_perf::HealthCheck (   $cli = false)

◆ HealthCheckCLI()

adodb_perf::HealthCheckCLI ( )

◆ InvalidSQL()

adodb_perf::InvalidSQL (   $numsql = 10)
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 425 of file adodb-perf.inc.php.

References $rs, rs2html(), and table().

Referenced by UI().

◆ MemInfo()

adodb_perf::MemInfo ( )

◆ optimizeDatabase()

adodb_perf::optimizeDatabase ( )

Reorganise current database. Default implementation loops over all MetaTables() and optimize each using optmizeTable()

Author
Markus Staab
Returns
Returns true on success and false on error
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 1082 of file adodb-perf.inc.php.

References $conn.

◆ OptimizeTable()

adodb_perf::OptimizeTable (   $table,
  $mode = ADODB_OPT_LOW 
)

Reorganise the table-indices/statistics/.. depending on the given mode. Default Implementation throws an error.

Parameters
stringtable name of the table to optimize
intmode optimization-mode ADODB_OPT_HIGH for full optimization ADODB_OPT_LOW for CPU-less optimization Default is LOW ADODB_OPT_LOW
Author
Markus Staab
Returns
Returns true on success and false on error
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 1068 of file adodb-perf.inc.php.

◆ OptimizeTables()

adodb_perf::OptimizeTables ( )

◆ Poll()

adodb_perf::Poll (   $secs = 5)
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 773 of file adodb-perf.inc.php.

References CPULoad(), and PollParameters().

Referenced by UI().

◆ PollParameters()

adodb_perf::PollParameters ( )
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 595 of file adodb-perf.inc.php.

References DBParameter().

Referenced by Poll().

◆ SplitSQL()

adodb_perf::SplitSQL (   $sql)
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 994 of file adodb-perf.inc.php.

References $sql.

Referenced by DoSQLForm().

◆ SuspiciousSQL()

adodb_perf::SuspiciousSQL (   $numsql = 10)
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 510 of file adodb-perf.inc.php.

References _SuspiciousSQL().

Referenced by UI().

◆ table()

◆ Tables()

adodb_perf::Tables (   $orderby = '1')
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 893 of file adodb-perf.inc.php.

References $rs, and rs2html().

Referenced by UI().

◆ Tracer()

◆ UI()

◆ undomq()

adodb_perf::undomq (   $m)
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 1000 of file adodb-perf.inc.php.

Referenced by DoSQLForm().

◆ WarnCacheRatio()

adodb_perf::WarnCacheRatio (   $val)

Member Data Documentation

◆ $_lastLoad

adodb_perf::$_lastLoad
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 353 of file adodb-perf.inc.php.

Referenced by CPULoad().

◆ $cliFormat

adodb_perf::$cliFormat = "%32s => %s \r\n"

◆ $color

adodb_perf::$color = '#F0F0F0'

◆ $conn

◆ $createTableSQL

adodb_perf::$createTableSQL = false

◆ $explain

adodb_perf::$explain = true

◆ $helpurl

adodb_perf::$helpurl = '<a href="http://adodb.sourceforge.net/docs-adodb.htm#logsql">LogSQL help</a>'

◆ $maxLength

adodb_perf::$maxLength = 2000

◆ $sql1

adodb_perf::$sql1 = 'sql1'

◆ $table

adodb_perf::$table = '<table border=1 bgcolor=white>'

◆ $tablesSQL

adodb_perf::$tablesSQL = false

◆ $titles

adodb_perf::$titles = '<tr><td><b>Parameter</b></td><td><b>Value</b></td><td><b>Description</b></td></tr>'
Examples:
/mnt/app/typo3/sysext/adodb/adodb/adodb-perf.inc.php.

Definition at line 223 of file adodb-perf.inc.php.

Referenced by HealthCheck().

◆ $warnRatio

adodb_perf::$warnRatio = 90