Memory Analyzer Tool in android?

前端 未结 7 2068
醉酒成梦
醉酒成梦 2020-11-27 16:31

I just want to know how to work with Memory analyzer tool in android. Please tell me how to do this to know about memory leaks for a particular project. Can someone give me

7条回答
  •  -上瘾入骨i
    2020-11-27 16:47

    I'd recommend taking a look at Leak Canary. It's not a memory analyzer per se, but more a leak detector. Just use your app, open and close activities and let the library do it's job. It will even tell you about where the leak occured. Just give the leak analyzer some time to do its work after the leak occured - it usually takes around 2 minutes or more until the source of the leak has been found.

提交回复
热议问题