Heap profiler reports JS engine memory usage and doesn't account for
C++ allocated objects (like WebKit DOM objects, strings, etc.) There
is ongoing work to report how much memory is retained from JS objects
in C++ DOM world, but it's not in yet.
yours,
anton.
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
>
There is ongoing work to report how much memory is retained from JS objects
in C++ DOM world, but it's not in yet.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
Here is the app itself: http://goo.gl/emE2m. Might be hard to follow. It is meant to become multi-functional file-uploader on top of XHR2 and FileAPI multi-runtime pollyfills. Trying to optimize it now, avoid circular references, memory leaks, etc. When on the page choose thumbnails view and add some files. Logic flow underneath is quite intricate, but I think simpler app with the same logic might encounter the same problem. Meanhwile I will try to wrap up a simpler example.
On Friday, August 10, 2012 12:04:15 PM UTC+4, Alexei Filippov wrote:Thanks for trying it. There was a problem with reporting cached images properly. Perhaps it is related to your case. It has been fixed a couple days ago, and the fix might not yet get into the canary build (I can't check it right now). Anyway it would be interesting to take a look at your page. Can you share the url?Other size corresponds to the memory that is not yet instrumented. Ideally if everything is instrumented it should be zero.
On Friday, August 10, 2012 11:32:48 AM UTC+4, Davit Barbakadze wrote:Thanks for useful tip. Very nice info there. But still not helpful in my case. What I see that every time I preload more image thumbs "Memory cache resources" gets pushed up and pushes "Other" as well. But after mere minutes or some action on the page "Memory cache resources" gets dropped back to initial value, while "Other" stays :|
Now what exactly constitutes "Other"?On Thursday, August 9, 2012 10:05:51 PM UTC+4, Alexei Filippov wrote:
On Thursday, August 9, 2012 9:03:03 PM UTC+4, Davit Barbakadze wrote:
On Thursday, April 7, 2011 4:24:09 PM UTC+4, Anton Muhin wrote:There is ongoing work to report how much memory is retained from JS objects
in C++ DOM world, but it's not in yet.Was there any progress on this?There's an experimental effort on reporting memory usage breakdown by components. It is still under development, but if you want to look at it do the following:1. grab the latest chrome canary build2. run it with --enable-devtools-experiments3. open the devtools and under its setting (a small gear at the bottom right) you should see the experiments tab.4. enable the 'Live native memory chart' option5. restart the devtools (just close and open its window)You should now see the native memory chart on the profiles tab.
--
Sorry for my off-topic.The native memory chart is very nice. Do you have some design doc, or could you tell me a good point to start reading code? I wonder if we could share the status sometime. I'm working on memory profiling, too.
Looks like I was keeping a reference to the canvas element all way through, buried deep in the object...How one is supposed to track such leakage down with Chrome tools?
Is there someway that I can automatically dump the entire heap into a file from the C++ code?