Skip to content

Commit

Permalink
Merge pull request #414 from reliforp/add-usage-example-link
Browse files Browse the repository at this point in the history
Add a psalm case to the usage examples of the memory profiler
  • Loading branch information
sj-i authored Jan 18, 2024
2 parents 959a451 + 5bd4d2c commit 8d0c6d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/memory-profiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ system("sudo reli i:m -p {$pid} --no-stop-process >{$pid}_memory_analyzed.json")
And you can also use [Xdebug](https://xdebug.org/). If the target is stopped at one of the breakpoints you set, then it's a good timing to analyze the target by Reli. This way you don't have to change the target code, though the behavior of the PHP VM isn't exactly same as the production enviornment in this case. Xdebug itself can be used to get the content of variables, but if you use Reli in addition to it, you can also get the statical data of the memory usage or reference graphs.
## Examples of diagnosing memory issues in the wild
- https://github.com/vimeo/psalm/issues/10522#issuecomment-1881729504
- https://github.com/PHPOffice/PhpSpreadsheet/issues/3814#issuecomment-1862367771
- https://github.com/smalot/pdfparser/issues/631#issuecomment-1847772214
Expand Down

0 comments on commit 8d0c6d5

Please sign in to comment.