mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-03 18:35:04 +00:00
add peak memory usage debug
This commit is contained in:
parent
e7201c33de
commit
dc1b3a169c
@ -1132,6 +1132,7 @@ echo ' update: ' . $db->getDebug()->query->update->total . PHP_EOL;
|
|||||||
echo ' delete: ' . $db->getDebug()->query->delete->total . PHP_EOL . PHP_EOL;
|
echo ' delete: ' . $db->getDebug()->query->delete->total . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
echo '[Memory, Mb]' . PHP_EOL;
|
echo '[Memory, Mb]' . PHP_EOL;
|
||||||
echo ' total: ' . $executionMemoryTotal . PHP_EOL . PHP_EOL;
|
echo ' complete: ' . $executionMemoryTotal . PHP_EOL;
|
||||||
|
echo ' peak: ' . number_format(memory_get_peak_usage() / 1000000, 3) . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
echo '-- completed in ' . $executionTimeTotal . ' seconds --' . PHP_EOL . PHP_EOL;
|
echo '-- completed in ' . $executionTimeTotal . ' seconds --' . PHP_EOL . PHP_EOL;
|
Loading…
x
Reference in New Issue
Block a user