lcdservices
lcdservices

Reputation: 863

determine how memory is allocated

I've searched around quite a bit, but have been unable to find a functional answer to how best determine how memory is allocated within a script at a point in time.

I'm not looking for memory_get_usage(), which tells me how much memory is being used, but rather am looking for how that memory is allocated -- for example, what variables exist which are consuming memory, and how much they are using. I need this in order to troubleshoot the memory hogs in my script.

Upvotes: 0

Views: 58

Answers (1)

Jon Armstrong
Jon Armstrong

Reputation: 58

Sounds like you're looking for a memory profiler. Take a look at XHProf.

Upvotes: 1

Related Questions