php-meminfo
php-meminfo copied to clipboard
PHP extension to get insight about memory usage
Two new INI settings have been added called `meminfo.dump_on_limit` and `meminfo.dump_dir`. When dump_on_limit is enabled, meminfo will attempt to create a heap dump when an OOM error is detected in...
Sometimes, this extension will generate on undecodable json file. Last time this happened to me, it was about a copyright character: ```json "0x7f94f5289418" : { "type" : "array", "size" :...
I sometimes use the [php-memory-profiler](https://github.com/arnaud-lb/php-memory-profiler) with your library to debug memory usage of my projects. This extension has a nice feature that allows to automatically dump a memory profile when...
Add a command which compiles summary statistics on stdClass objects according to their properties. It's fine if you don't want this. It's just something I needed today, so I thought...
Hi @BitOne thanks for building this wonderful extension! I made a little tool to read a heap dump file and display it as a treemap given some root node. https://gitlab.com/findley/php-meminfo-treemap...
Hello! I have been using php-meminfo to find how my projects tests exhausting memory, and it's been great. Thank you! However, I found that meminfo misses something: static local variables....
I was excited to try this to debug a long-lived script I am running with swoole. However, about 50%+ of the time I run `meminfo_dump()` it segfaults. Anything I can...
If FFI objects are dumped, invalid JSON is generated, note the trailing comma after `"2329"`: ``` "0x7f0c227017c0" : { "type" : "object", "size" : "72", "symbol_name" : "Amp\\Http\\Internal\\HPackNghttp2::deflatePtrType", "is_root" :...
When any of the memory usage values exceeds 2 147 483 648, on my system it gets generated in the JSON file as a negative integer. This is a normal...
This allows to build on windows in accordance to php build guide: https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2 DISCLAIMER: Personally only tested on PHP 7.2, but this should work for all other version that this...