Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion meaning of usedJsHeapSize and totalJsHeapsize?

Date: Mon, 26 Mar 2012 05:54:30 -0700 (PDT)
From: g...@weisscher.nl
To: google-chrome-developer-tools@googlegroups.com
Cc: g...@weisscher.nl
Message-ID: <240289.97.1332766470466.JavaMail.geo-discussion-forums@vblo18>
In-Reply-To: <CANpOREV8eGh0+dmu+vSYaaW5qd7ay1y3ui6WJSxqQXT6cHbJcA@mail.gmail.com>
References: <29522780.267.1332759951386.JavaMail.geo-discussion-forums@vbbbg2>
 <CANpOREV8eGh0+dmu+vSYaaW5qd7ay1y3ui6WJSxqQXT6cHbJcA@mail.gmail.com>
Subject: Re: [Chrome DevTools] meaning of usedJsHeapSize and
 totalJsHeapsize?
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_95_14009225.1332766470464"

------=_Part_95_14009225.1332766470464
Content-Type: multipart/alternative; 
	boundary="----=_Part_96_1597178.1332766470464"

------=_Part_96_1597178.1332766470464
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Well, filing a bug would not be the problem. Providing details on how you 
could reproduce this will;
In fact, we have not been developing javascript but EGL. (IBM's generation 
language). Frontend EGL applications generate js. Since we have been 
struggling with memory-issues for some time now we encapsulated some really 
simple js-functions to retrieve js-heap information programmatically.
And this info is really helpfull, we're just having a little trouble in 
interepreting the numbers the produce.
We do not have the skills to provide you with detailed info on how to 
re-produce these issues in js directly.

Do you happen to know if there is any more info to find on these dev-tool 
arguments. (I already found the chrome devtools docs, but they only mention 
the existence of these functions and give no background information.

With kind regards,
Guus


Op maandag 26 maart 2012 13:56:19 UTC+2 schreef Yury Semikhatsky het 
volgende:
>
>
>
> On Mon, Mar 26, 2012 at 3:05 PM, <g...@weisscher.nl> wrote:
>
>> hi all,
>>
>> I have been looking into these options for some time now and still could 
>> not figure out the exact difference between the two.
>> I would expect usedJsHeapSize to be the actual amount of memory being 
>> used, and totalJsHeapsize the max heapsize being used until that moment.
>
> usedJsHeapSize is the total amount of memory being used by JS objects 
> including V8 internal objects, totalJsHeapSize is current size of the JS 
> heap including free space not occupied by any JS objects. This means 
> that usedJsHeapSize can not be greater than totalJsHeapSize. Note that it 
> is not necessarily that there has ever been totalJsHeapSize of alive JS 
> objects.
>
>  
>
>> I have done lots of testing with these values but the totalJsHeapsize is 
>> almost always lower than the usedJsHeapsize, so exactly the other way 
>> around.
>>
>> That's weird. Could you file a bug on this at http://crbug.com/new and 
> provide some details on how we could reproduce this?
>  
> Yury
>
> any help would be appreciated.
>>
>
>> guus
>>
>>
>
------=_Part_96_1597178.1332766470464
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Well, filing a bug would not be the problem. Providing details on how you c=
ould reproduce this will;<br>In fact, we have not been developing javascrip=
t but EGL. (IBM's generation language). Frontend EGL applications generate =
js. Since we have been struggling with memory-issues for some time now we e=
ncapsulated some really simple js-functions to retrieve js-heap information=
 programmatically.<br>And this info is really helpfull, we're just having a=
 little trouble in interepreting the numbers the produce.<br>We do not have=
 the skills to provide you with detailed info on how to re-produce these is=
sues in js directly.<br><br>Do you happen to know if there is any more info=
 to find on these dev-tool arguments. (I already found the chrome devtools =
docs, but they only mention the existence of these functions and give no ba=
ckground information.<br><br>With kind regards,<br>Guus<br><br><br>Op maand=
ag 26 maart 2012 13:56:19 UTC+2 schreef Yury Semikhatsky het volgende:<bloc=
kquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-l=
eft: 1px #ccc solid;padding-left: 1ex;"><br><br><div class=3D"gmail_quote">=
On Mon, Mar 26, 2012 at 3:05 PM,  <span dir=3D"ltr">&lt;<a href=3D"mailto:g=
u...@weisscher.nl" target=3D"_blank">g...@weisscher.nl</a>&gt;</span> wrote:=
<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef=
t:1px #ccc solid;padding-left:1ex">
hi all,<br><br>I have been looking into these options for some time now and=
 still could not figure out the exact difference between the two.<br>I woul=
d expect usedJsHeapSize to be the actual amount of memory being used, and t=
otalJsHeapsize the max heapsize being used until that moment.</blockquote>
<div>usedJsHeapSize is the total amount of memory being used by JS objects =
including V8 internal objects, totalJsHeapSize is current size of the JS he=
ap including free space not occupied by any JS objects. This means that&nbs=
p;usedJsHeapSize can not be greater than&nbsp;totalJsHeapSize. Note that it=
 is not necessarily that there has ever been&nbsp;totalJsHeapSize&nbsp;of a=
live JS objects.</div>
<div><br></div><div>&nbsp;</div><blockquote class=3D"gmail_quote" style=3D"=
margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have done =
lots of testing with these values but the totalJsHeapsize is almost always =
lower than the usedJsHeapsize, so exactly the other way around.<br>
<br></blockquote><div>That's weird. Could you file a bug on this at&nbsp;<a=
 href=3D"http://crbug.com/new" target=3D"_blank">http://crbug.com/new</a> a=
nd provide some details on how we could reproduce this?</div><div>&nbsp;</d=
iv><div>Yury</div><div>
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord=
er-left:1px #ccc solid;padding-left:1ex">any help would be appreciated.<br>=
</blockquote><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex">
<br>guus<br><br></blockquote></div><br>
</blockquote>
------=_Part_96_1597178.1332766470464--

------=_Part_95_14009225.1332766470464--