From 2bfdbd47130c8f1175eb46ec5390882ba2dfd88d Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 22 Feb 2008 13:23:58 +0000 Subject: [PATCH] Added debug tags. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9077 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 7d8cfe19b..9880ab91c 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -760,6 +760,8 @@ function get_sub_list($filter, $category,$sub_deps, $base= "", $attributes= arra global $config, $ui; $departments = array(); +# $start = microtime(TRUE); + /* Get LDAP link */ $ldap= $config->get_ldap_link($flags & GL_SIZELIMIT); @@ -901,6 +903,9 @@ function get_sub_list($filter, $category,$sub_deps, $base= "", $attributes= arra } } } +# if(microtime(TRUE) - $start > 0.1){ +# echo sprintf("
GET_SUB_LIST  %s .| %f  --- $base -----$filter ---- $flags
",__LINE__,microtime(TRUE) - $start); +# } return($result); } @@ -909,6 +914,8 @@ function get_list($filter, $category, $base= "", $attributes= array(), $flags= G { global $config, $ui; +# $start = microtime(TRUE); + /* Get LDAP link */ $ldap= $config->get_ldap_link($flags & GL_SIZELIMIT); @@ -968,7 +975,10 @@ function get_list($filter, $category, $base= "", $attributes= array(), $flags= G } } } - + +# if(microtime(TRUE) - $start > 0.1){ +# echo sprintf("
GET_LIST %s .| %f  --- $base -----$filter ---- $flags
",__LINE__,microtime(TRUE) - $start); +# } return ($result); } -- 2.30.2