2009-02-17 13:14:53 +00:00
|
|
|
|
<?php
|
2009-07-21 14:41:56 +00:00
|
|
|
|
if ( LOG_BENCH != 'NONE')
|
2009-02-17 13:14:53 +00:00
|
|
|
|
{
|
|
|
|
|
$timer->setMarker('Fin du script (append.php)');
|
|
|
|
|
$mem=memory_get_usage();
|
|
|
|
|
$memko=$mem/1024;
|
2009-04-23 14:43:03 +00:00
|
|
|
|
if ( LOG_BENCH == 'FILE' || LOG_BENCH == 'BOTH' ) {
|
|
|
|
|
$strInfo=DATETIME_LOG.';'.$mem.';'.$_SERVER["PHP_SELF"].';'.$_SERVER['QUERY_STRING']."\n";
|
2009-07-21 07:56:58 +00:00
|
|
|
|
$f = fopen( PATH_LOGS.'memory.log', 'a+' );
|
2009-04-23 14:43:03 +00:00
|
|
|
|
fwrite($f, $strInfo);
|
|
|
|
|
fclose($f);
|
|
|
|
|
}
|
|
|
|
|
if ( LOG_BENCH == 'WEB' || LOG_BENCH == 'BOTH' ) {
|
|
|
|
|
echo '<br/><hr><br/>M<>moire utilis<69>e par le script "'. $_SERVER['PHP_SELF'].'" = '.$mem . " octets ($memko ko)";
|
|
|
|
|
echo "<br/>Temps d'ex<65>cution de la page :<br/>";
|
|
|
|
|
$timer->display();
|
|
|
|
|
}
|
2009-02-17 13:14:53 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|