Skip to content

Commit 0ba80b6

Browse files
authored
Fix memory usage calculation in profiling
1 parent 730139d commit 0ba80b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug/debug-profiling.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static function () use ($hook) {
2222
return;
2323
}
2424
$time = timer_float();
25-
$mem = round(memory_get_peak_usage(true) / 1048576, 0);
25+
$mem = round(memory_get_usage(false) / 1048576, 0);
2626
add_action(
2727
'shutdown',
2828
static function () use ($hook, $time, $mem) {

0 commit comments

Comments
 (0)