I'm trying to use the memory/leak tools provided, I need some
clarification on a few things if possible.
A basic navigate to google.com and then shutdown of my app yeilds about
the same "leakage" as the MFCEmbed app does. Here is where I'm a little
confused...if I click on the link to froogle and then shut down, I get a
WHOLE lot of reported leaks. But if I go to news or images...any of the
other links there on google.com, the reported "leakage" is the same as
just loading google.com and shutting down.
I've attached both reports to this email...I don't have a lot of
experience with this so I'm not sure if this is "expected" or not.
Something else I noticed. I WAS getting that nsWindow, nsWebBrowser
and one other...dang can't remember..were leaking...I changed my
nsIWebBrowser object from an nsCOMPtr to a standard raw pointer and
released them myself on shutdown and it got rid of those leaks. I'm
wondering...since it was an nsCOMPtr, could it be that the leak stats
finished up before the nsCOMPtr had a chance to call the destructor on
that object? Thanks to anyone who can provide any info on this!
Niky Williams
== BloatView: ALL (cumulative) LEAK STATISTICS
|<----------------Class--------------->|<-----Bytes------>|<----------------Objects---------------->|<--------------References-------------->|
Per-Inst Leaked Total
Rem Mean StdDev Total Rem Mean StdDev
0 TOTAL 52 700 180907
33 ( 405.09 +/- 852.71) 675651 5 ( 2007.07 +/- 3126.63)
1 AtomImpl 16 48 607
3 ( 251.22 +/- 136.79) 36327 3 ( 952.72 +/- 265.48)
2 BCCellData 16 432 27
27 ( 14.00 +/- 7.94) 0 0 ( 0.00 +/- 0.00)
60 XPCNativeScriptableShared 108 108 204
1 ( 15.59 +/- 6.69) 0 0 ( 0.00 +/- 0.00)
63 XPCWrappedNative 56 56 628
1 ( 235.03 +/- 135.29) 18437 1 ( 293.46 +/- 124.18)
453 nsXPCComponents 56 56 29
1 ( 10.75 +/- 4.89) 321 1 ( 32.31 +/- 13.01)
== BloatView: ALL (cumulative) LEAK STATISTICS
|<----------------Class--------------->|<-----Bytes------>|<----------------Objects---------------->|<--------------References-------------->|
Per-Inst Leaked Total
Rem Mean StdDev Total Rem Mean StdDev
0 TOTAL 44 77564 41781
2753 ( 193.13 +/- 278.56) 115991 1537 ( 195.80 +/- 299.70)
1 AtomImpl 16 1248 218
78 ( 109.96 +/- 49.45) 3833 159 ( 368.41 +/- 151.65)
2 BackstagePass 20 20 1
1 ( 1.00 +/- 0.00) 32 1 ( 7.02 +/- 3.22)
10 CSSImportantRule 16 80 13
5 ( 7.57 +/- 3.43) 282 5 ( 35.08 +/- 13.69)
11 CSSLoaderImpl 184 184 6
1 ( 2.36 +/- 1.57) 38 1 ( 4.61 +/- 2.06)
22 EditorShutdownObserver 12 12 1
1 ( 1.00 +/- 0.00) 6 1 ( 1.82 +/- 0.75)
24 HTMLCSSStyleSheetImpl 32 32 4
1 ( 2.29 +/- 1.11) 12 1 ( 4.35 +/- 2.14)
26 ImageObserver 8 56 13
7 ( 7.79 +/- 3.54) 0 0 ( 0.00 +/- 0.00)
29 LayoutShutdownObserver 12 12 1
1 ( 1.00 +/- 0.00) 4 1 ( 1.71 +/- 0.76)
38 RDFServiceImpl 280 280 1
1 ( 1.00 +/- 0.00) 26 2 ( 7.26 +/- 3.50)
47 TimerThread 192 192 1
1 ( 1.00 +/- 0.00) 7 2 ( 3.00 +/- 1.13)
58 XPCNativeScriptableInfo 8 48 111
6 ( 53.87 +/- 29.29) 0 0 ( 0.00 +/- 0.00)
59 XPCNativeScriptableShared 108 648 158
6 ( 18.03 +/- 11.08) 0 0 ( 0.00 +/- 0.00)
61 XPCWrappedNative 56 392 315
7 ( 143.99 +/- 84.98) 6350 8 ( 193.64 +/- 91.08)
62 XPCWrappedNativeProto 28 168 55
6 ( 28.12 +/- 14.94) 0 0 ( 0.00 +/- 0.00)
64 gfxImageFrame 56 448 11
8 ( 6.64 +/- 3.20) 62 8 ( 7.88 +/- 3.57)
65 imgCache 24 24 1
1 ( 1.00 +/- 0.00) 6 3 ( 2.33 +/- 1.00)
66 imgContainerGIF 92 736 11
8 ( 6.64 +/- 3.20) 79 8 ( 8.10 +/- 3.51)
68 imgRequest 112 896 11
8 ( 6.64 +/- 3.20) 99 8 ( 19.95 +/- 7.72)
69 imgRequestProxy 40 320 11
8 ( 6.64 +/- 3.20) 185 8 ( 19.57 +/- 6.84)
79 nsAtomList 8 1504 478
188 ( 126.51 +/- 70.72) 0 0 ( 0.00 +/- 0.00)
80 nsAtomStringList 12 756 902
63 ( 219.96 +/- 113.65) 0 0 ( 0.00 +/- 0.00)
81 nsAttrSelector 32 3968 434
124 ( 117.07 +/- 62.77) 0 0 ( 0.00 +/- 0.00)
82 nsBaseCommandController 32 32 2
1 ( 1.33 +/- 0.58) 28 1 ( 2.51 +/- 0.92)
83 nsBaseContentList 60 1320 52
22 ( 25.79 +/- 10.96) 467 22 ( 40.71 +/- 5.93)
85 nsBaseEditorCommand 12 168 14
14 ( 7.50 +/- 4.18) 49 49 ( 25.00 +/- 14.29)
86 nsBaseURLParser 12 24 3
2 ( 2.00 +/- 0.82) 1554 32 ( 163.62 +/- 82.54)
89 nsBindingManager 256 256 4
1 ( 2.29 +/- 1.11) 14 1 ( 3.93 +/- 1.94)
104 nsCSSDeclaration 28 6020 525
215 ( 302.54 +/- 141.73) 0 0 ( 0.00 +/- 0.00)
114 nsCSSRule 20 4420 545
221 ( 313.82 +/- 147.00) 3915 221 ( 491.59 +/- 215.23)
117 nsCSSSelector 36 15660 3417
435 ( 792.69 +/- 430.30) 0 0 ( 0.00 +/- 0.00)
118 nsCSSSelectorList 12 3468 1043
289 ( 582.21 +/- 278.48) 0 0 ( 0.00 +/- 0.00)
119 nsCSSStyleSheet 84 252 20
3 ( 10.73 +/- 5.47) 256 3 ( 32.70 +/- 17.72)
120 nsCSSStyleSheetInner 72 216 12
3 ( 6.71 +/- 3.20) 0 0 ( 0.00 +/- 0.00)
124 nsCSSValue::Image 20 140 7
7 ( 4.00 +/- 2.16) 0 0 ( 0.00 +/- 0.00)
125 nsCSSValue::URL 16 400 150
25 ( 80.57 +/- 40.41) 0 0 ( 0.00 +/- 0.00)
126 nsCSSValueList 12 660 63
55 ( 34.87 +/- 19.06) 0 0 ( 0.00 +/- 0.00)
130 nsCStringKey 20 1660 981
83 ( 155.46 +/- 67.23) 0 0 ( 0.00 +/- 0.00)
133 nsCacheEntryDescriptor 28 224 17
8 ( 8.73 +/- 3.34) 132 8 ( 9.13 +/- 3.73)
136 nsCacheEntryHashTable 36 36 2
1 ( 1.33 +/- 0.58) 0 0 ( 0.00 +/- 0.00)
139 nsCacheService 124 124 1
1 ( 1.00 +/- 0.00) 31 8 ( 9.17 +/- 4.58)
140 nsCacheSession 32 64 4
2 ( 2.50 +/- 1.05) 66 2 ( 4.39 +/- 1.09)
159 nsControllerCommandTable 68 68 1
1 ( 1.00 +/- 0.00) 12 1 ( 2.52 +/- 1.16)
162 nsCookiePermission 40 40 1
1 ( 1.00 +/- 0.00) 10 1 ( 3.47 +/- 1.43)
163 nsCookieService 92 92 1
1 ( 1.00 +/- 0.00) 19 1 ( 2.14 +/- 0.86)
166 nsDNSService 48 48 1
1 ( 1.00 +/- 0.00) 18 1 ( 5.31 +/- 2.31)
167 nsDOMCSSAttributeDeclaration 24 48 2
2 ( 1.50 +/- 0.71) 8 1 ( 3.47 +/- 1.51)
168 nsDOMClassInfo 20 100 35
5 ( 18.69 +/- 9.56) 2024 12 ( 107.04 +/- 36.99)
169 nsDOMDocumentType 92 92 1
1 ( 1.00 +/- 0.00) 7 1 ( 2.38 +/- 1.04)
171 nsDOMEventGroup 12 12 1
1 ( 1.00 +/- 0.00) 186 1 ( 2.25 +/- 0.84)
174 nsDOMScriptObjectFactory 20 20 1
1 ( 1.00 +/- 0.00) 14 1 ( 4.15 +/- 1.73)
179 nsDebugImpl 12 12 1
1 ( 1.00 +/- 0.00) 3 1 ( 1.40 +/- 0.55)
189 nsDocShell::InterfaceRequestorProxy 16 16 1
1 ( 1.00 +/- 0.00) 58 1 ( 5.98 +/- 3.33)
194 nsDocument 504 504 4
1 ( 2.29 +/- 1.11) 4791 1 ( 19.47 +/- 4.44)
196 nsDocumentChildNodes 16 16 2
1 ( 1.33 +/- 0.58) 0 0 ( 0.00 +/- 0.00)
201 nsEntropyCollector 1048 1048 1
1 ( 1.00 +/- 0.00) 4 1 ( 1.71 +/- 0.76)
204 nsEventListenerManager 44 440 34
10 ( 19.16 +/- 9.03) 2989 10 ( 26.32 +/- 8.46)
206 nsEventQueueImpl 36 36 1
1 ( 1.00 +/- 0.00) 4819 2 ( 8.15 +/- 6.54)
207 nsEventQueueServiceImpl 48 48 1
1 ( 1.00 +/- 0.00) 114 4 ( 10.63 +/- 3.38)
210 nsExceptionService 60 60 1
1 ( 1.00 +/- 0.00) 12 1 ( 2.61 +/- 0.94)
220 nsFontCleanupObserver 12 12 1
1 ( 1.00 +/- 0.00) 4 1 ( 1.71 +/- 0.76)
222 nsFormControlList 104 104 2
1 ( 1.33 +/- 0.58) 2 1 ( 1.33 +/- 0.58)
226 nsGenericDOMDataNode 28 4312 197
154 ( 112.62 +/- 59.55) 2650 154 ( 190.37 +/- 108.40)
227 nsGenericDOMNodeList 12 72 28
6 ( 15.38 +/- 7.51) 184 6 ( 16.85 +/- 7.57)
228 nsGenericElement 28 5432 319
194 ( 187.03 +/- 91.34) 19879 204 ( 653.86 +/- 392.32)
229 nsGenericFactory 20 20 198
1 ( 99.25 +/- 57.09) 1353 2 ( 132.52 +/- 56.00)
233 nsGlobalWindow 244 488 3
2 ( 2.00 +/- 0.82) 3070 2 ( 12.91 +/- 3.64)
235 nsHTMLStyleSheet 92 92 4
1 ( 2.29 +/- 1.11) 8 1 ( 4.27 +/- 2.25)
236 nsHTMLStyleSheet::GenericTableRule 12 60 20
5 ( 11.14 +/- 5.33) 26 5 ( 14.17 +/- 7.01)
237 nsHTMLStyleSheet::HTMLColorRule 16 48 7
3 ( 4.18 +/- 1.83) 15 3 ( 8.22 +/- 4.04)
240 nsHashKey 8 664 4112
83 ( 227.50 +/- 60.19) 0 0 ( 0.00 +/- 0.00)
241 nsHashPropertyBag 48 48 15
1 ( 2.24 +/- 1.15) 248 1 ( 9.79 +/- 3.25)
242 nsHashtable 44 528 133
12 ( 31.38 +/- 8.44) 0 0 ( 0.00 +/- 0.00)
245 nsHttpHandler 436 436 1
1 ( 1.00 +/- 0.00) 234 1 ( 6.61 +/- 2.43)
248 nsIDNService 60 60 1
1 ( 1.00 +/- 0.00) 18 2 ( 2.74 +/- 1.19)
249 nsIOService 76 76 1
1 ( 1.00 +/- 0.00) 657 1 ( 6.60 +/- 1.50)
250 nsIOThreadPool 48 48 1
1 ( 1.00 +/- 0.00) 62 1 ( 9.45 +/- 4.28)
254 nsImageWin 84 672 11
8 ( 6.64 +/- 3.20) 37 8 ( 7.14 +/- 3.43)
266 nsJISx4051LineBreaker 12 12 2
1 ( 1.33 +/- 0.58) 186 1 ( 2.42 +/- 0.87)
268 nsJSContext 64 64 2
1 ( 1.33 +/- 0.58) 1598 6 ( 13.43 +/- 5.08)
269 nsJSEventListener 36 216 14
6 ( 8.23 +/- 3.72) 43 6 ( 8.05 +/- 3.92)
272 nsJSRuntimeServiceImpl 28 28 1
1 ( 1.00 +/- 0.00) 18 1 ( 4.51 +/- 1.72)
277 nsLayoutStylesheetCache 28 28 1
1 ( 1.00 +/- 0.00) 11 4 ( 3.72 +/- 1.74)
280 nsLoadGroup 4 4 2
1 ( 1.33 +/- 0.58) 128 1 ( 9.18 +/- 4.17)
281 nsLocalFile 80 160 1261
2 ( 96.98 +/- 50.22) 7469 2 ( 107.74 +/- 53.97)
285 nsMappedAttributes 28 504 248
18 ( 26.21 +/- 10.06) 545 73 ( 75.55 +/- 41.75)
286 nsMediaList 24 48 13
2 ( 7.00 +/- 3.56) 67 2 ( 8.62 +/- 4.09)
292 nsNavigator 28 28 2
1 ( 1.33 +/- 0.58) 15 1 ( 4.52 +/- 2.10)
295 nsNodeInfo 32 896 77
28 ( 44.06 +/- 20.57) 1469 194 ( 191.98 +/- 104.65)
296 nsNodeInfoManager 20 20 4
1 ( 2.29 +/- 1.11) 85 29 ( 46.43 +/- 21.59)
298 nsObserverList 8 224 28
28 ( 14.50 +/- 8.23) 0 0 ( 0.00 +/- 0.00)
299 nsObserverService 16 16 1
1 ( 1.00 +/- 0.00) 136 3 ( 5.05 +/- 1.81)
300 nsOnloadBlocker 12 12 4
1 ( 2.29 +/- 1.11) 16 1 ( 3.87 +/- 1.63)
303 nsPermissionManager 108 108 1
1 ( 1.00 +/- 0.00) 13 1 ( 2.60 +/- 1.22)
308 nsPrefBranch 64 64 7
1 ( 2.85 +/- 1.21) 49 2 ( 5.88 +/- 2.26)
312 nsPrincipal 120 120 7
1 ( 1.15 +/- 0.90) 2724 3 ( 3.80 +/- 0.89)
314 nsProperties 4 32 11
8 ( 6.64 +/- 3.20) 33 8 ( 6.53 +/- 3.20)
315 nsProtocolProxyService 192 192 1
1 ( 1.00 +/- 0.00) 10 1 ( 3.37 +/- 1.38)
316 nsProxyObjectManager 104 104 1
1 ( 1.00 +/- 0.00) 3 1 ( 1.80 +/- 0.84)
317 nsRDFResource 32 96 28
3 ( 14.51 +/- 7.42) 69 3 ( 20.59 +/- 10.86)
330 nsSHistoryObserver 12 12 1
1 ( 1.00 +/- 0.00) 4 1 ( 1.71 +/- 0.76)
335 nsScriptLoader 44 44 4
1 ( 2.29 +/- 1.11) 22 1 ( 3.91 +/- 1.73)
336 nsScriptLoaderObserverProxy 16 16 4
1 ( 2.29 +/- 1.11) 36 1 ( 3.83 +/- 1.63)
337 nsScriptSecurityManager 92 92 1
1 ( 1.00 +/- 0.00) 53 1 ( 9.32 +/- 3.50)
341 nsShutdownObserver 12 96 8
8 ( 4.50 +/- 2.45) 32 8 ( 7.21 +/- 2.65)
346 nsSocketTransportService 1676 1676 1
1 ( 1.00 +/- 0.00) 15 1 ( 4.10 +/- 1.72)
348 nsStandardURL 184 5888 394
32 ( 164.36 +/- 78.71) 3866 75 ( 308.44 +/- 152.30)
353 nsStreamConverterService 16 16 1
1 ( 1.00 +/- 0.00) 12 1 ( 2.61 +/- 0.94)
365 nsSupportsArray 56 1344 71
24 ( 31.72 +/- 13.97) 313 24 ( 29.91 +/- 16.08)
367 nsSupportsCStringImpl 28 224 12
8 ( 7.25 +/- 3.42) 48 8 ( 7.05 +/- 3.48)
372 nsSystemPrincipal 36 36 1
1 ( 1.00 +/- 0.00) 133 2 ( 7.03 +/- 1.78)
384 nsThread 28 56 4
2 ( 2.50 +/- 1.05) 754 2 ( 21.02 +/- 3.33)
386 nsTimerImpl 60 60 17
1 ( 7.12 +/- 3.26) 274 1 ( 19.44 +/- 4.72)
392 nsURIHashKey 8 8 19
1 ( 7.49 +/- 3.40) 0 0 ( 0.00 +/- 0.00)
395 nsUnicodeNormalizer 12 12 1
1 ( 1.00 +/- 0.00) 4 1 ( 1.71 +/- 0.76)
396 nsVariant 64 128 8
2 ( 3.36 +/- 1.28) 32 2 ( 4.11 +/- 1.57)
400 nsVoidArray 8 696 1875
87 ( 527.59 +/- 210.92) 0 0 ( 0.00 +/- 0.00)
401 nsWeakReference 16 528 62
33 ( 34.88 +/- 15.78) 1096 49 ( 88.31 +/- 26.40)
406 nsWindowDataSource 76 76 1
1 ( 1.00 +/- 0.00) 10 1 ( 3.89 +/- 1.52)
410 nsWindowsShellService 20 20 1
1 ( 1.00 +/- 0.00) 6 1 ( 2.18 +/- 0.98)
415 nsXBLKeyEventHandler 28 28 1
1 ( 1.00 +/- 0.00) 5 2 ( 2.25 +/- 1.04)
423 nsXPCComponents 56 56 15
1 ( 7.76 +/- 4.26) 167 1 ( 28.41 +/- 15.08)
429 nsXPCThreadJSContextStackImpl 20 20 1
1 ( 1.00 +/- 0.00) 217 1 ( 6.04 +/- 1.07)
430 nsXPCWrappedJS 48 144 12
3 ( 6.71 +/- 3.20) 79 6 ( 17.00 +/- 7.37)
431 nsXPCWrappedJSClass 44 44 4
1 ( 2.29 +/- 1.11) 54 3 ( 6.94 +/- 3.20)
434 nsXULControllers 28 28 2
1 ( 1.33 +/- 0.58) 14 1 ( 2.37 +/- 0.93)
436 nsXULPrototypeCache 180 180 1
1 ( 1.00 +/- 0.00) 48 2 ( 4.46 +/- 1.01)
443 xptiInterfaceInfo 20 20 567
1 ( 80.67 +/- 68.61) 3049 1 ( 114.42 +/- 84.45)
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding