PHPSpy
php-memory-profiler
Our great sponsors
PHPSpy | php-memory-profiler | |
---|---|---|
1 | 3 | |
1,390 | 836 | |
- | - | |
4.5 | 6.2 | |
2 days ago | 1 day ago | |
C | C | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PHPSpy
-
Pyroscope 0.0.31 Supports Continuous Profiling for debugging server performance issues in PHP
It's using phpspy, which does support fpm:
php-memory-profiler
-
PHP: memory errors
use memprof
-
Plotting the memory of a PHP process with Gnuplot 📈
I learned a lot in the process, but also noticed the nice memory graphs in the video and figured it would be hard to troubleshoot anything if I didn't have them. When using php extensions such as Benoît's or Arnaud Le Blanc's to take a snapshot of the memory, it's great to think about the most appropriate moment to take that snapshot in order to capture the memory leak you might be hunting. Sure, you can use Monolog's MemoryUsageProcessor to that end, but I thought it would be more useful to get something a bit more ✨visual✨.
-
Having memory leaks on testing?
Maybe give https://github.com/arnaud-lb/php-memory-profiler a try. Til you actually track down the leak, you're asking someone else to go down this rabbit hole for a contrived scenario.
What are some alternatives?
php-spx - A simple & straight-to-the-point PHP profiling extension with its built-in web UI
PCOV - PCOV - CodeCoverage compatible driver for PHP
hardened_malloc - Hardened allocator designed for modern systems. It has integration into Android's Bionic libc and can be used externally with musl and glibc as a dynamic library for use on other Linux-based platforms. It will gain more portability / integration over time.
Laravel-Zero - A PHP framework for console artisans
feh - a fast and light image viewer
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
php-meminfo - PHP extension to get insight about memory usage
Firegento - Extends the customer functionality of Magento.
Laravel - The Laravel Framework.
PHPDBG
bytehound - A memory profiler for Linux.