Visualize the heap dominators / retained size as a treemap.Īnyway, that’s still very much the future, let’s talk about what’s in 2.9.1 now! New metrics in heap analysis metadata ¶.I built LeakCanary to help fix leaks, but in doing so I accidentally wrote a fairly flexible heap dump parser. Here’s what you’ll now see in the heap dump metadata: Since we’re parsing the heap to find leaks anyway, we might as well report additional interesting metrics. Large bitmap count (bitmaps with more pixels than 1.1x the pixels on screen).SQLiteDatabase in memory (open or closed, as well as their file path).This is just a first pass, feedback and ideas welcome! Performance improvements ¶ The heap analysis now traverses the heap dump using RandomAccessFile instead of ansferTo() and is now 40% faster on API 23 and 20% faster on newer APIs.Īlso, sticky class GC roots are now deduplicated, which great reduces the memory footprint of LeakCanary on API 23 ( #2324).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |