Re: memory_get_usage with new Memory Manager

From: Date: Thu, 27 Jul 2006 17:33:27 +0000
Subject: Re: memory_get_usage with new Memory Manager
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-25019@lists.php.net to get a copy of this message
On 27-Jul-06, at 1:17 PM, Ron Korving wrote:
Yes, hosting providers would enable the memory limit. But who wants to use memory_get_[peak_]usage()? Not the hosting provider, but the application developer.
The peak usage function was added with profiling in mind and keeping track of scripts that spike memory, when I added it the intent was it would help with profiling and debugging. Not something used everyday in production environment. In dev environment speed is not an issue, so you can enable memory limit and raise the limit to some very high value such as 1Gb so it does not get in the way. Ilia Alshanetsky

« previous php.internals (#25019) next »