Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74041 invoked by uid 1010); 27 Jul 2006 12:34:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74026 invoked from network); 27 Jul 2006 12:34:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2006 12:34:57 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.184.234 wr-out-0506.google.com Linux 2.4/2.6 Received: from ([64.233.184.234:30216] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id F6/2E-23194-FE2B8C44 for ; Thu, 27 Jul 2006 08:34:56 -0400 Received: by wr-out-0506.google.com with SMTP id i5so46103wra for ; Thu, 27 Jul 2006 05:34:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:x-priority:content-type:message-id:cc:from:subject:date:to:x-mailer:sender; b=q5GHVm+agl0FgLOoIAQU6BbP1622dx2Mx0ZZ8zEtQPEkHMeky59mDrzc+GuSHyfP9knLPI/EKQsip8fY1dLPIwdBBUp5XBxCoQUZ8VhvtPtGGeS/W5SlzkCgYdOzRsZWrPDLsCpVXsNUeOA7cpAa1Sj7ibONYKcTzXvuXsQ4oaU= Received: by 10.65.119.14 with SMTP id w14mr6876747qbm; Thu, 27 Jul 2006 05:34:53 -0700 (PDT) Received: from ?192.168.1.6? ( [72.59.8.142]) by mx.gmail.com with ESMTP id f14sm4364477qba.2006.07.27.05.34.50; Thu, 27 Jul 2006 05:34:52 -0700 (PDT) In-Reply-To: <00ed01c6b163$c3d40ad0$0201a8c0@pc1> References: <00d601c6af9d$c18f2d30$0201a8c0@pc1> <003701c6afb1$81b87720$6e02a8c0@thinkpad> <44C6205F.4090808@php.net> <00ed01c6b163$c3d40ad0$0201a8c0@pc1> Mime-Version: 1.0 (Apple Message framework v752.2) X-Priority: 3 Content-Type: multipart/alternative; boundary=Apple-Mail-31--397171736 Message-ID: Cc: , "Dmitry Stogov" Date: Thu, 27 Jul 2006 08:34:47 -0400 To: "Matt W" X-Mailer: Apple Mail (2.752.2) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] memory_get_usage with new Memory Manager From: ilia@prohost.org (Ilia Alshanetsky) --Apple-Mail-31--397171736 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 27-Jul-06, at 6:02 AM, Matt W wrote: > > Something else I'd like to see changed... Does anyone think > memory_get_[peak_]usage() should *always* be available, regardless of > whether memory_limit is actually enabled? Using the Windows > binaries at > least, I was devastated :-D that they were unavailable for > experimenting, > etc. > Counting memory all the time adds a fair amount of overhead to script execution especially given how frequently PHP needs to allocate memory. Therefore usage memory utilization functions are only available when PHP is compiled with memory in which case it keeps track of its mem usage. Ilia Alshanetsky --Apple-Mail-31--397171736--