Steve Clark wrote:
>
> Hi Chris:
>
> I don't think I understand how these numbers are derived. I find it hard to
> believe there are 16 pres shells in memory at any one time for the browser, let
> alone 198.
These are not just PresShell objects, but PresShell objects and other
objects that have been rolled up into the PresShell. Please see
http://lxr.mozilla.org/mozilla/source/tools/trace-malloc/types.dat
for an explanation of how this data is derived, and to review what
objects are being rolled up. If you'd like to roll the data up
differently,
1. Download the raw data file from
http://ftp.mozilla.org/pub/bloat-reports/cnn.log.gz (I *just* put it
there, so it will take a bit of time to mirror),
2. Pull the `trace-malloc' tools:
cd mozilla/tools
cvs -d up trace-malloc
3. Modify `types.dat' to re-classify the <PresShell> types more
appropriately.
4. Re-run `histogram.pl' to dump an object type histogram.
chris