By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 1,092 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

Profiling memory usage of php scripts

P: n/a
Hi is it possible to profile memory usage of single function, ideally it
would be to see stack tree with memory info of each function (current
usage of memory before and after executing function), do you know any
tool that allows that function? Thanks in advance.
Dec 13 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Jaroslaw Szczepankiewicz wrote:
Hi is it possible to profile memory usage of single function, ideally it
would be to see stack tree with memory info of each function (current
usage of memory before and after executing function), do you know any
tool that allows that function? Thanks in advance.
Hi, have a try with this pack:
apache2 & php & xdebug & callgrind & kcachegrind
Impressive output of a memory usage footprint of a scripts execution trace.

---
arkascha
Dec 13 '07 #2

P: n/a
arkascha pisze:
Jaroslaw Szczepankiewicz wrote:
>Hi is it possible to profile memory usage of single function, ideally it
would be to see stack tree with memory info of each function (current
usage of memory before and after executing function), do you know any
tool that allows that function? Thanks in advance.

Hi, have a try with this pack:
apache2 & php & xdebug & callgrind & kcachegrind
are you shure you used xdebug to profile memory? version: 2.0.0RC4 of
xdebug has in changelog:
"- Removed support for Memory profiling as that didn't work properly."
which version of xdebug had you used
Impressive output of a memory usage footprint of a scripts execution trace.

---
arkascha
Dec 13 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.