Profiling memory usage of php scripts

This is a discussion on Profiling memory usage of php scripts within the PHP Language forums, part of the PHP Programming Forums category; Hi is it possible to profile memory usage of single function, ideally it would be to see stack tree with ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-13-2007
Jaroslaw Szczepankiewicz
 
Posts: n/a
Default Profiling memory usage of php scripts

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.
Reply With Quote
  #2 (permalink)  
Old 12-13-2007
arkascha
 
Posts: n/a
Default Re: Profiling memory usage of php scripts

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
Reply With Quote
  #3 (permalink)  
Old 12-13-2007
Jaroslaw Szczepankiewicz
 
Posts: n/a
Default Re: Profiling memory usage of php scripts

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0