Salut, Je test actuellement "xhprof",
En P.J. un petit patch qui permet d'ajouter un lien vers les résultats du "profiling" de la page au début des infos de debug. J'essaierai de vous donner ici quelques résultats intéressants, si j'en obtient. ++
Index: inc/html.class.php =================================================================== --- inc/html.class.php (révision 17689) +++ inc/html.class.php (copie de travail) @@ -522,6 +522,19 @@ echo "<div id='debug'>"; echo "<h1><a id='see_debug' name='see_debug'>GLPI MODE DEBUG</a></h1>"; + if (defined('XHPROF_PATH') + && function_exists('xhprof_enable')) { + // stop profiler + $xhprof_data = xhprof_disable(); + include_once XHPROF_PATH."/xhprof_lib/utils/xhprof_lib.php"; + include_once XHPROF_PATH."/xhprof_lib/utils/xhprof_runs.php"; + + $xhprof_runs = new XHProfRuns_Default(); + $run_id = $xhprof_runs->save_run($xhprof_data, "glpi"); + + echo "<h2>Profiling: <a href='/xhprof/index.php?run=$run_id&source=glpi'>XHPROF</a></h2>"; + } + if ($CFG_GLPI["debug_sql"]) { echo "<h2>SQL REQUEST : "; echo $SQL_TOTAL_REQUEST." Queries "; @@ -920,6 +933,13 @@ } $HEADER_LOADED = true; + // mode debug with profiling + if ($_SESSION['glpi_use_mode'] == Session::DEBUG_MODE + && defined('XHPROF_PATH') + && function_exists('xhprof_enable')) { + xhprof_enable(); + } + self::includeHeader($title); // Body echo "<body>"; @@ -1096,7 +1116,7 @@ $menu['inventory']['content']['internet']['shortcut'] = ''; $menu['inventory']['content']['internet']['page'] = '/front/internet.php'; $menu['inventory']['content']['internet']['links']['search'] = '/front/internet.php'; - + $menu['inventory']['content']['internet2']['title'] = __('Internet2'); $menu['inventory']['content']['internet2']['shortcut'] = ''; $menu['inventory']['content']['internet2']['page'] = '/front/internet2.php';
<<attachment: config_path.php>>
_______________________________________________ Glpi-dev mailing list Glpi-dev@gna.org https://mail.gna.org/listinfo/glpi-dev