📜  php 内存使用视图 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:53.485000             🧑  作者: Mango

代码示例1
PHP has it's own memory testing functions, I don't know if that's any use to you, but if you just want to log it you could use: http://php.net/manual/en/function.memory-get-peak-usage.php

    echo "Using ", memory_get_peak_usage(1), " bytes of ram.";