3 ms·
I have used memory profilers in PHP. In my experience, it is difficult to analyze why application uses lot of RAM just by looking at stack traces. It is better
by codedokode 3y ago
I have used memory profilers in PHP. In my experience, it is difficult to analyze why application uses lot of RAM just by looking at stack traces. It is better when you have a graph of references: which variable references which memory block. So that you can see, for example, that `cache.users[23].comments[56].attachments[2].binary_data` uses 10 Mb of RAM.
- colechristensen 3y agoAnd flame graphs excel and this kind of thing https://www.brendangregg.com/flamegraphs.html https://www.brendangregg.com/flamegraphs.html