Test NOALYSS"; /* * cherche pour fichier a include, s'il y en a alors les affiche * avec une description */ echo ''; $get='test.php?'.http_build_query(array('script'=>"all", 'gDossier'=>$gDossierLogInput, 'description'=>"Tous les scripts")); echo ''; echo ''; echo ''; echo ''; for ($e=0; $e<$cnt_scenario; $e++) { $get='test.php?'.http_build_query(array('script'=>$scenario[$e]['file'], 'gDossier'=>$gDossierLogInput, 'description'=>$scenario[$e]['desc'])); echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
'; echo ''; echo "Tous "; echo ''; echo 'Tous les scripts
'; echo $e; echo ''; echo ''; echo $scenario[$e]['file']; echo ''; echo ''.$scenario[$e]['desc'].'
'; } else if ($script=='all') { $nb=HtmlInput::default_value_get('nb_script', 0); $start_mem=memory_get_usage(); $start_time=microtime(true); $script=str_replace('../', '', $script); echo '

'.$nb." ".$scenario[$nb]['file']."

"; echo '

description = '.$scenario[$nb]["desc"].'

'; include '../scenario/'.$scenario[$nb]['file']; echo ''; echo ''; $end_mem=memory_get_usage(); $end_time=microtime(true); echo "

start mem : ".$start_mem; echo '

'; echo "

end mem : ".$end_mem; echo '

'; echo "

Diff = ".($end_mem-$start_mem)." bytes "; echo "

Diff = ".(round(($end_mem-$start_mem)/1024, 2))." kbytes "; echo "

Diff = ".(round(($end_mem-$start_mem)/1024/1024, 2))." Mbytes "; echo '

'; echo "

Execution script ".$script." time = ".(round(($end_time-$start_time), 4))." secondes

"; $nb++; if ( $nb == $maxscan ) { echo "Dernier test"; } else { $get='test.php?'.http_build_query(array('script'=>"all", 'gDossier'=>$gDossierLogInput, 'nb_script'=>$nb)); echo ''; echo $scenario[$nb]['file']; } } else { $start_mem=memory_get_usage(); $start_time=microtime(true); $script=str_replace('../', '', $script); $description=HtmlInput::default_value_get("description", "aucune description"); echo '

'.$script."

"; echo '

description = '.$description.'

'; include '../scenario/'.$script; $end_mem=memory_get_usage(); $end_time=microtime(true); echo "

start mem : ".$start_mem; echo '

'; echo "

end mem : ".$end_mem; echo '

'; echo "

Diff = ".($end_mem-$start_mem)." bytes "; echo "

Diff = ".(round(($end_mem-$start_mem)/1024, 2))." kbytes "; echo "

Diff = ".(round(($end_mem-$start_mem)/1024/1024, 2))." Mbytes "; echo '

'; echo "

Execution script ".$script." time = ".(round(($end_time-$start_time), 4))." secondes

"; }