473,775 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2718
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
6002
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 both talk to an Active X Control written in C++ as well calls directly into the ADO layer. It seems that basic interaction with the ADO layer and Active X Control causes the dllhost.exe process to use
6
4431
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 hog, varible initialization etc. Is there a way to use Perl scripts at the same speed of PHP without worrying about those clearing varibles etc in mod_perl.
13
2284
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++ community. I have a C++ program to profile and went about it by producing large history files of calling dependencies with associated times. It is presumably similar to gprof's data format and could be converted.
10
5672
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 scripts from within the app? Not just once, but many times in a single session, and without leaking memory. Preferably an open source app so I can see how it's done. Our app (http://golly.sourceforge.net/) currently uses calls like these every...
3
1503
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 increase all the time, until in a day or two the system cannot handle it any more and starts to do constant swapping. Is there a way to look at which objects or variables are taking the huge amount of memory space? Thanks,
2
1255
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. However, on my laptop I turned off Virtual memory (e.g. I have no paging file), since I have more than enough RAM. So one would think that VM Size column in the Task Manager would be all zeroes. It is not. Does VM Size mean something else? ...
9
4217
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 starts off at a nice 4% of memory, then slowly grows up to 50% and beyond. This translates to around 2 gigs of physical memory, and that's really way more memory than this program should be taking up.
17
8488
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 file under linux python 2.4 (same problem with windows 2.5, tried with the first example) : #Python interpreter memory usage : 1.1 Mb private, 1.4 Mb shared #Using http://www.pixelbeat.org/scripts/ps_mem.py to get memory information
7
2147
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 PC: PHP version 4.3.9 on a 32 bit using Linux Centos 4.5 as operating system. Production machine: PHP version 5.1.2 on a 64 bit machine with Linux Novell Suse 10.1 as operating system. I noticed this because I started to get memory limit...
0
9622
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10270
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10051
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9916
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7464
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6718
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4017
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.