Invoke memory profile with debugbreak() |
|
Answer my own question
p=2 gives the Memory profiler. p=3 gives the Line Profiler AND the Memory Profiler. Haven't figured out how to get Line, Memory and SQL yet however (p=18 just killed it entirely) |
||||||||||||
|
|
Well, having got it working seems buggy. Many negative "bytes used" appearing.
I tried to attach a screen grab but this forum's attach an image also broken. But here's an example, minus 71.04 KB, really? Are you giving me free RAM upgrades now Nusphere? Summary File: <PHP Core> <PHP Core> total: 146.7 KB Page total: -71.04 KB Peak memory: 14.86 MB, reached at <PHP Core>(0 |
||||||||||||
|
Site Admin
|
if your function takes memory, it shown as positive value. Guess what profiler shows if memory was released?
As of p= flags, it is very simple. 0x001 is Line, 0x002 is Memory, and 0x010 is SQL. Select profiles you need, and OR corresponding flags, result in dec form shold be placed in p=. |
||||||||||||||
_________________ The PHP IDE team |
Invoke memory profile with debugbreak() |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by