Zikula 1.0.1
[ class tree: Zikula 1.0.1 ] [ index: Zikula 1.0.1 ] [ all elements ]

Class: perf_mysql

Source Location: /includes/classes/adodb/perf/perf-mysql.inc.php

Class Overview

adodb_perf
   |
   --perf_mysql



Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 18]


[ Top ]


Class Variables

$createTableSQL =  "CREATE TABLE adodb_logsql (
        created datetime NOT NULL,
        sql0 varchar(250) NOT NULL,
        sql1 text NOT NULL,
        params text NOT NULL,
        tracer text NOT NULL,
        timer decimal(16,6) NOT NULL
      )"

[line 22]


Type:   mixed
Overrides:   Array


[ Top ]

$optimizeTableHigh =  'OPTIMIZE TABLE %s'

[line 286]


Type:   mixed


[ Top ]

$optimizeTableLow =  'CHECK TABLE %s FAST QUICK'

[line 285]


Type:   mixed


[ Top ]

$settings = array(
   'Ratios',
      'MyISAM cache hit ratio' => array('RATIO',
         '=GetKeyHitRatio',
         '=WarnCacheRatio'),'InnoDB cache hit ratio'=>array('RATIO','=GetInnoDBHitRatio','=WarnCacheRatio'),'data cache hit ratio'=>array('HIDE',# only if called
'=FindDBHitRatio','=WarnCacheRatio'),'sql cache hit ratio'=>array('RATIO','=GetQHitRatio',''),'IO','data reads'=>array('IO','=GetReads','Number of selects (Key_reads is not accurate)'),'data writes'=>array('IO','=GetWrites','Number of inserts/updates/deletes * coef (Key_writes is not accurate)'),'Data Cache','MyISAM data cache size'=>array('DATAC',array("show variables",'key_buffer_size'),''),'BDB data cache size'=>array('DATAC',array("show variables",'bdb_cache_size'),''),'InnoDB data cache size'=>array('DATAC',array("show variables",'innodb_buffer_pool_size'),''),'Memory Usage','read buffer size'=>array('CACHE',array("show variables",'read_buffer_size'),'(per session)'),'sort buffer size'=>array('CACHE',array("show variables",'sort_buffer_size'),'Size of sort buffer (per session)'),'table cache'=>array('CACHE',array("show variables",'table_cache'),'Number of tables to keep open'),'Connections','current connections'=>array('SESS',array('show status','Threads_connected'),''),'max connections'=>array('SESS',array("show variables",'max_connections'),''),false)

[line 31]


Type:   mixed


[ Top ]

$tablesSQL =  'show table status'

[line 20]


Type:   mixed
Overrides:   Array


[ Top ]



Class Methods


constructor perf_mysql [line 84]

perf_mysql perf_mysql( &$conn)



Parameters:

   &$conn  

[ Top ]

method Explain [line 89]

void Explain( $sql, [ $partial = false])



Overrides adodb_perf::Explain() (parent method not documented)

Parameters:

   $sql  
   $partial  

[ Top ]

method FindDBHitRatio [line 192]

void FindDBHitRatio( )



[ Top ]

method GetInnoDBHitRatio [line 246]

void GetInnoDBHitRatio( )



[ Top ]

method GetKeyHitRatio [line 275]

void GetKeyHitRatio( )



[ Top ]

method GetQHitRatio [line 222]

void GetQHitRatio( )



[ Top ]

method GetReads [line 130]

void GetReads( )



[ Top ]

method GetWrites [line 159]

void GetWrites( )



[ Top ]

method optimizeTable [line 291]

void optimizeTable( $table, [ $mode = ADODB_OPT_LOW])



Tags:

see:  optimizeTable


Parameters:

   $table  
   $mode  

[ Top ]

method Tables [line 119]

void Tables( )



Overrides adodb_perf::Tables() (parent method not documented)

[ Top ]


Documentation generated on Fri, 18 Jul 2008 21:48:10 +0200 by phpDocumentor 1.4.1