获取分配给php的内存使用量

echo round(memory_get_usage() / 1024 / 1024, 2) . ' MB' . PHP_EOL . '<br />';
echo memory_get_usage() . ' byte'. PHP_EOL;
exit;

猜你喜欢

转载自blog.csdn.net/qq_28137309/article/details/81975508
今日推荐