Here is the categorization report and some observations for TestGTKEmbed (blank and home.netscape.com) and Mozilla.
dp
TestGtkEmbed - Blank page All [ 1,131,840 size, 100.0%, 13,134 allocations ] xpcom [ 573,512 size, 50.7%, 6,033 allocations ] uncategorized [ 166,224 size, 14.7%, 1,816 allocations ] preferences [ 105,192 size, 9.3%, 721 allocations ] X [ 99,392 size, 8.8%, 2,330 allocations ] gtk [ 54,432 size, 4.8%, 388 allocations ] atoms [ 37,928 size, 3.4%, 653 allocations ] dom [ 37,208 size, 3.3%, 563 allocations ] js [ 33,448 size, 3.0%, 267 allocations ] js-catchall [ 19,952 size, 1.8%, 286 allocations ] global-history [ 3,072 size, 0.3%, 52 allocations ] intl [ 1,480 size, 0.1%, 25 allocations ] ------------------------------------------------------------------------ Notes ------------------------------------------------------------------------ - xpcom is too high. It will go down once we have an embedded package. - xpt loading should be done lazy. Might help embedded apps. - prefs : 105k bad - why should we need js to show blank gtkEmbed window ? scrollbar ? prefs ? - 37k of atoms!! really! TestGtkEmbed - Allocations live post startup of home.netscape.com All [ 4,257,896 size, 100.0%, 45,387 allocations ] html [ 794,680 size, 18.7%, 8,965 allocations ] xpcom [ 678,544 size, 15.9%, 7,894 allocations ] images [ 474,080 size, 11.1%, 390 allocations ] font [ 328,792 size, 7.7%, 5,565 allocations ] css [ 275,592 size, 6.5%, 4,661 allocations ] uncategorized [ 256,680 size, 6.0%, 3,067 allocations ] necko [ 219,144 size, 5.1%, 1,185 allocations ] global-history [ 180,104 size, 4.2%, 125 allocations ] js [ 158,800 size, 3.7%, 2,526 allocations ] X [ 137,528 size, 3.2%, 2,371 allocations ] jar [ 134,080 size, 3.1%, 122 allocations ] intl [ 118,592 size, 2.8%, 2,646 allocations ] xbl [ 117,296 size, 2.8%, 1,994 allocations ] preferences [ 105,008 size, 2.5%, 794 allocations ] dom [ 72,904 size, 1.7%, 923 allocations ] atoms [ 54,888 size, 1.3%, 853 allocations ] rdf [ 54,496 size, 1.3%, 346 allocations ] gtk [ 54,376 size, 1.3%, 387 allocations ] xul [ 21,128 size, 0.5%, 263 allocations ] js-catchall [ 21,056 size, 0.5%, 306 allocations ] bookmarks [ 128 size, 0.0%, 4 allocations ] ------------------------------------------------------------------------ Notes ------------------------------------------------------------------------ - Eliminate rdf - Jar's why it is holding on to that much memory - Global history definitely needs a lighter version - bookmarks : should not get initialized. - xul, xbl, js, jar : all together are too much. We are probably doing more than the absolute minimum here. check this. Mozilla - Default Profile loading home.netscape.com. Allocations alive post startup All [ 9,087,008 size, 100.0%, 111,978 allocations ] js [ 1,373,312 size, 15.1%, 18,738 allocations ] xbl [ 1,119,176 size, 12.3%, 19,231 allocations ] html [ 1,053,120 size, 11.6%, 10,162 allocations ] xul [ 866,808 size, 9.5%, 13,861 allocations ] css [ 790,032 size, 8.7%, 14,694 allocations ] xpcom [ 789,544 size, 8.7%, 8,005 allocations ] images [ 712,912 size, 7.8%, 1,036 allocations ] uncategorized [ 395,224 size, 4.3%, 5,583 allocations ] font [ 334,944 size, 3.7%, 5,678 allocations ] necko [ 297,536 size, 3.3%, 2,212 allocations ] jar [ 231,672 size, 2.5%, 255 allocations ] global-history [ 183,072 size, 2.0%, 114 allocations ] X [ 161,696 size, 1.8%, 2,420 allocations ] rdf [ 156,928 size, 1.7%, 1,114 allocations ] dom [ 154,992 size, 1.7%, 1,658 allocations ] js-catchall [ 129,976 size, 1.4%, 2,143 allocations ] intl [ 127,320 size, 1.4%, 2,765 allocations ] preferences [ 110,544 size, 1.2%, 992 allocations ] gtk [ 52,488 size, 0.6%, 391 allocations ] atoms [ 38,496 size, 0.4%, 852 allocations ] bookmarks [ 7,216 size, 0.1%, 74 allocations ]
