diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-21 14:23:51 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-21 14:23:51 +0000 |
| commit | deec785a7f7371725395459b709986a33868f729 (patch) | |
| tree | 7e877d9de23ef0ba6c121b8b86271a71b1e54cec /frontends/php/include/copt.lib.php | |
| parent | 0b09f9baf43ed17364c46eeb3f562f64e84c159b (diff) | |
- [ZBX-228,ZBX-208] fixed output parsing (Artem)
- [ZBX-185] fixes for PHP4 (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5201 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/copt.lib.php')
| -rw-r--r-- | frontends/php/include/copt.lib.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/frontends/php/include/copt.lib.php b/frontends/php/include/copt.lib.php index bde47dc4..0cb65aad 100644 --- a/frontends/php/include/copt.lib.php +++ b/frontends/php/include/copt.lib.php @@ -109,7 +109,7 @@ if(defined('USE_PROFILING')){ class COpt{ /* protected static $starttime[]=array(); */ - /* protected */ static function getmicrotime() { + /* protected static */ function getmicrotime() { if(defined('USE_TIME_PROF')) { list($usec, $sec) = explode(' ',microtime()); return ((float)$usec + (float)$sec); @@ -120,7 +120,7 @@ if(defined('USE_PROFILING')){ } - /* public */ static function showmemoryusage($descr=null){ + /* public static */ function showmemoryusage($descr=null){ if(defined('USE_MEM_PROF')) { $memory_usage = COpt::getmemoryusage(); $memory_usage = $memory_usage.'b | '.($memory_usage>>10).'K | '.($memory_usage>>20).'M'; @@ -128,7 +128,7 @@ if(defined('USE_PROFILING')){ } } - /* protected */ static function getmemoryusage() { + /* protected static */ function getmemoryusage() { if(defined('USE_MEM_PROF')) { return memory_get_usage('memory_limit'); } else { @@ -136,7 +136,7 @@ if(defined('USE_PROFILING')){ } } - /* public */ static function counter_up($type=NULL){ + /* public static */ function counter_up($type=NULL){ if(defined('USE_COUNTER_PROF')){ global $perf_counter; global $starttime; @@ -150,7 +150,7 @@ if(defined('USE_PROFILING')){ } } - /* public */ static function profiling_start($type=NULL){ + /* public static */ function profiling_start($type=NULL){ global $starttime; global $memorystamp; global $sqlmark; @@ -175,7 +175,7 @@ if(defined('USE_PROFILING')){ } } - /* public */ static function savesqlrequest($sql){ + /* public static */ function savesqlrequest($sql){ if(defined('USE_SQLREQUEST_PROF')){ global $sqlrequests; if(defined('SHOW_SQLREQUEST_DETAILS')){ @@ -187,7 +187,7 @@ if(defined('USE_PROFILING')){ } } - /* public */ static function profiling_stop($type=NULL){ + /* public static */ function profiling_stop($type=NULL){ global $starttime; global $memorystamp; global $sqlrequests; @@ -245,11 +245,11 @@ if(defined('USE_PROFILING')){ } - /* public */ static function set_memory_limit($limit='8M'){ + /* public static */ function set_memory_limit($limit='8M'){ ini_set('memory_limit',$limit); } - /* public */ static function compare_files_with_menu($menu=null){ + /* public static */ function compare_files_with_menu($menu=null){ if(defined('USE_MENU_PROF')){ $files_list = glob('*.php'); |
