Comments (5)
That is a good one. Haven't thought of that 👍 , will give it a try and report back
from php-meminfo.
If you have a difference between the 2 files, then there's a bug in phpMeminfo or a bug in the Zen engine.
When you cal gc_collect_cycles()
, it triggers the circular collection sooner. But in all cases, the circular collection would have collected the cycles without references.
And as phpMeminfo is built to provide information on memory leak, that is items that have still reference so they cannot be cleaned up from memory, it doesn't make much sense to list items that will be collected and cleanup automatically by the Zend engine.
So there should not be any difference between the two files.
from php-meminfo.
Maybe if you tell me what you want to know exactly, we could find a real solution for you case ?
from php-meminfo.
When you cal
gc_collect_cycles()
, it triggers the circular collection sooner. But in all cases, the circular collection would have collected the cycles without references.
Yeah so I've learned since opening this issue.
And as phpMeminfo is built to provide information on memory leak, that is items that have still reference so they cannot be cleaned up from memory, it doesn't make much sense to list items that will be collected and cleanup automatically by the Zend engine.
So there should not be any difference between the two files.
To find a memory leak I want to see the differences between two or more files. See the exact differences and what items are new or removed between files.
from php-meminfo.
Hey @WyriHaximus ,
Thanks for your answer!
When I need to do that, I usually used the summary
analyzer and the diff
command to see which kind of objects leaked the most. But it's maybe not precise enough for your use case.
As we are using JSON files, maybe you can try some generic JSON tools, like jd
: https://github.com/josephburnett/jd#command-line-usage
It's capable of diffing two different json files.
Don't hesitate to share your experience with it, it may help others, and we could add a section in the documentation about it, if it's worth it.
from php-meminfo.
Related Issues (20)
- Header : signed integer overflow
- Invalid JSON for FFI objects HOT 1
- The frame label is not correct when there are more than two frames
- Segfault with PHP 7.4 due to https://github.com/BitOne/php-meminfo/pull/106 fix HOT 1
- segfault using it with swoole HOT 1
- Treemap Visualization of Heap Dump
- [Feature request] Allow to automatically create a dump on memory limit HOT 4
- Malformed UTF-8 characters, possibly incorrectly encoded HOT 2
- Please release a PHP 8-compatible version
- A way to diff two dumps HOT 1
- Odd behaviour resulting in SIGSEGV HOT 3
- New tag for PHP 8 ? HOT 1
- Wrong result with Fibers PHP 8.1
- Some zvals are missing in memory dump for classes with the __debugInfo magic.
- pthreads and meminfo HOT 1
- PHP 7.3 support HOT 3
- Provide a simpler view for the reference path
- PHPStorm stub HOT 1
- Memory leak not displayed in the dump HOT 6
- Make fails on PHP 7.3 in Linux HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-meminfo.