开发者

living bytes increase without leak

开发者 https://www.devze.com 2023-04-08 12:42 出处:网络
I\'m making iPhone development and having (like lot of peoples) problems with memory management. I\'m often using \"Instruments\" in order to fix memory I have forgot to dealloc.

I'm making iPhone development and having (like lot of peoples) problems with memory management.

I'm often using "Instruments" in order to fix memory I have forgot to dealloc.

So I don't have memory leak anymore !

BUT... When I'm using the app the "Live Bytes" in Instruments is always increasing.

At the launch my App is using 4MB and going back and forward few times in my U开发者_开发知识库INavigationView 10MB (still "without" memory leak).

living bytes increase without leak

Martin Magakian


That would be bloat, not a true leak.

What you want to do is use that Mark Heap button a time or two, then look at the heap shots.

http://www.friday.com/bbum/2010/10/17/when-is-a-leak-not-a-leak-using-heapshot-analysis-to-find-undesirable-memory-growth/ has lots more.

0

精彩评论

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

关注公众号