473,396 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.
Dec 13 '07 #1
2 2701
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Swift | last post by:
Hello. I'm new to the news group and new to IIS. I'm trying to help a client deal with memory usage issues in IIS. My client is running IIS 5.0 on a Win2K box and is running ASP scripts that...
6
by: nntp | last post by:
I tried mod_perl. It is too troublesome. Many old scripts stopped running. Even those running eat memory like crazy. I wonder why mod_php does not have the problems in mod_perl, such as memory...
13
by: Jens Theisen | last post by:
Hello, I want to apologise in advance for this being off topic. It's not neither A C nor a C++ question, but to profiling in general, though I my chances are best to find the answer in the C/C++...
10
by: Andrew Trevorrow | last post by:
No response to my last message, so I'll try a different tack... Does anyone know of, or even better, has anyone here written a C++ application for Mac/Windows that allows users to run Python...
3
by: Eddie | last post by:
Hi, I am looking for a method to profile memory usage in my python program. The program provides web service and therefore is intended to run for a long time. However, the memory usage tends to...
2
by: Frank Rizzo | last post by:
I am trying to profile the memory usage of an application. In Task Manager, I can add Virtual Memory Usage (VM Usage). I am confused by this metric. Usually it is close to the Mem Usage value. ...
9
by: jeungster | last post by:
Hello, I'm trying to track down a memory issue with a C++ application that I'm working on: In a nutshell, the resident memory usage of my program continues to grow as the program runs. It...
17
by: frederic.pica | last post by:
Greets, I've some troubles getting my memory freed by python, how can I force it to release the memory ? I've tried del and gc.collect() with no success. Here is a code sample, parsing an XML...
7
by: coolsti | last post by:
I have just noticed a very large difference in memory usage for the PHP applications that I have developed for my company between my developmental machine and the "production" machine: Development...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.