
28/04/2008, 10:30
|
 | | | Fecha de Ingreso: noviembre-2006 Ubicación: Lima - Perú
Mensajes: 81
Antigüedad: 18 años, 3 meses Puntos: 0 | |
Re: Otras Alternativas a Wordpress| La medición lo hice localmente, a continuacion te muestro el codigo php con el cual salen esos valores: PHP 5.0
echo 'Memoria usada: ' . round(memory_get_usage() / 1024,1) . ' KB de ' . round(memory_get_usage(1) / 1024,1) . ' KB'; PHP 4.3.2
function memory_get_usage() {
$pid = getmypid();
exec("ps -o rss -p $pid", $output);
return $output[1] *1024;
}
echo 'Memoria usada: ' . round(memory_get_usage() / 1024,1) . ' KB';
Saludos |