diff --git a/src/MD_STD_DEBUG.php b/src/MD_STD_DEBUG.php new file mode 100644 index 0000000..9ed7c9a --- /dev/null +++ b/src/MD_STD_DEBUG.php @@ -0,0 +1,35 @@ +'; + echo \microtime(true) - $start . "
"; + echo 'RAM Usage (Peak): ' . \memory_get_peak_usage() . "
"; + echo 'RAM Usage: ' . \memory_get_usage() . "
"; + if ($loadAvg = \sys_getloadavg()) { + echo 'Load avg. (last 1 minute): ' . $loadAvg[0] . '
'; + echo 'Load avg. (last 5 minute): ' . $loadAvg[1] . '
'; + echo 'Load avg. (last 15 minute): ' . $loadAvg[2] . '
'; + } + echo ''; + }, $start); + + } +}