php-memory-profiler
php-memory-profiler copied to clipboard
Memory profiler for PHP. Helps finding memory leaks in PHP scripts.
``` ./configure --with-php-config=/usr/bin/php-config5.6 make ``` /tmp/php-memory-profiler/memprof.c:1231:2: warning: passing argument 1 of 'zend_fetch_resource' from incompatible pointer type [enabled by default]
### Description The following code: date_default_timezone_set('Asia/Kolkata'); $filename = "/app/storage/logs/profile_".date('d-m-Y_H:i').".heap"; $file = fopen($filename, 'w'); memprof_dump_pprof($file); Using MEMPROF_PROFILE=1 in env varibale Resulted in this output: File is getting created but container is...
### Description The following code: ```php
### Description [Link to phalcon](https://github.com/phalcon/cphalcon) Repr steps: 1. Clone the repo https://github.com/maxgalbu/phalcon-memprof-segfault 2. run `docker-compose build` 3. run `docker-compose up` Resulted in this output: ``` test-1 | bool(true) test-1 |...
### Description Hi, first off, thank you for the extension, it's awesome! Based on reading the documentation and skimming the source code, am I right to conclude that the `dump_on_limit`...