Skip to content

Commit

Permalink
Merge pull request #1 from TheDragonCode/2.x
Browse files Browse the repository at this point in the history
Fixed memory consumption tracking
  • Loading branch information
andrey-helldar authored Feb 10, 2023
2 parents 5000333 + b26492c commit c9a14b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function run(callable $callback): array
$callback();

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

return [$time, $ram];
}
Expand Down

0 comments on commit c9a14b8

Please sign in to comment.