Re: Memory use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



http://php.net/manual/en/function.memory-get-usage.php

Do it before and after, and subtract.

YMMV.

On Wed, March 23, 2005 10:31 pm, Joe Wollard said:
> Greetings,
>
> I'm trying to help a C programmer understand and use PHP for web
> development. So far all the similarities between C++ and PHP are making
> the process rather speedy. He asked what seemed like a very simple
> question, but I couldn't find the answer. The questions is how can you
> determine how much memory a variable/object/struct/etc are using?
>
> For instance:
> $myObject = new myClass();
> $myObject->performAction_and_holdResult();
>
> At this point, how can you tell how much memory $myObject is using?
>
> Thanks!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux