Chrome page isolation seems to make this task a bit easier.

Also http://www.razorspeed.com/ will give you an exact javascript memory
footprint for your page. You could run it with and with out and get your
answer.

On Mon, Oct 13, 2008 at 8:20 PM, nutron <[EMAIL PROTECTED]> wrote:

> Do you have a metric scale handy?
> Kidding.
>
> The only thing I can think of is to profile the browser process and load a
> simple page with a single link on it. Let the memory for the browser
> stabilize for a moment (flatline) and note that usage. Then click your link
> and have it create, say, 10,000 of those objects. Take the difference in
> memory and then divide by 10K...
>
> Aaron
>
> On Mon, Oct 13, 2008 at 5:15 PM, Brandon-2 <
> [EMAIL 
> PROTECTED]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1330981&i=0>
> > wrote:
>
>>
>> Hey everyone,
>>
>> Is there any way to find out the size of an object in JavaScript? Say
>> I create an object like so:
>>
>> Test = {
>>    variable : '',
>>    init : function() {},
>>    doSomething : function() {}
>> }
>>
>> var a = new Test();
>>
>> Is there anything I could do to get the size of "a" in kilobytes?
>>
>> Thanks.
>>
>
> The MooTools Tutorial: www.mootorial.com CNET Clientside:
> clientside.cnet.com
>
> ------------------------------
> View this message in context: Re: Function to check object size in 
> memory<http://n2.nabble.com/Function-to-check-object-size-in-memory-tp1330971p1330981.html>
> Sent from the MooTools Users mailing list 
> archive<http://n2.nabble.com/MooTools-Users-f660466.html>at Nabble.com.
>

Reply via email to