Skip to content

Commit b26492c

Browse files
Fixed memory consumption tracking
1 parent 5000333 commit b26492c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/Runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function run(callable $callback): array
2626
$callback();
2727

2828
$time = $this->diff(hrtime(true), $startAt);
29-
$ram = memory_get_usage() - $ramFrom;
29+
$ram = memory_get_peak_usage() - $ramFrom;
3030

3131
return [$time, $ram];
3232
}

0 commit comments

Comments
 (0)