开发者

the leak Activity monitor is reliable?

开发者 https://www.devze.com 2023-04-13 00:27 出处:网络
IWrite my iphone app. I checked the leak with leak instrument when I push and pop a ViewController. it can\'t find any red tip.

I Write my iphone app. I checked the leak with leak instrument when I push and pop a ViewController. it can't find any red tip. But I check the app with the same method. the memory of the app increase开发者_Python百科d slowly.

which is reliable. My app leak?

thank you in advance !


Not all losses of memory are leaks, just ones that there is no pointer to. Try Heapshot Analysis, bbum has a great tutorial here. I have used Heapshot many times to great advantage, many thanks to bum.

The leaks tool is not foolproof, it is a good start.

Also use the LLVM static analyzer and fix all of it's warnings.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号