我的记忆在哪里消耗 [英] Where is my memory getting consumed

查看:59
本文介绍了我的记忆在哪里消耗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

替代文本http://img263.imageshack.us/img263/1880/leak.jpg 这是我的问题.如果看到没有内存泄漏,但仍然出现如图所示的一般块的内存泄漏.当我单击它时,它会为我提供以下详细信息,说明内存泄漏是由于石英芯造成的.我不知道我要去哪里错了,因为我在泄漏条上看不到任何泄漏.

alt text http://img263.imageshack.us/img263/1880/leak.jpg Here is My problem. If you see there is no memory leak but still I get the memory leak for general block as shown. When I click it it gives me the following details where memory leak is due to quartz core. I dont know where I am going wrong since I am not able to see any leaks in the leak bar.

替代文字http://img263.imageshack.us/img263/6813/leak2.jpg

推荐答案

请记住,您看到泄漏"的原因可能是分配给自动释放池的对象.诸如Three20之类的库尤其喜欢这种用于图像缓存的方法.在这种情况下,只有直接需要它(即自动释放消耗),才会释放有问题的内存.

Bear in mind that the reason you see a 'leak' might be objects allocated to an AutoRelease pool. Libraries such as Three20 are particularly fond of this for image caching. If that is the case, the memory in question won't be released until there is a direct need for it (i.e. autorelease drain).

如果您继续使用自己的应用,是否会看到内存使用量持续攀升,直到崩溃?还是您像锯齿一样看到它-即先上升,然后突然下降,然后再次上升?

If you keep using your app, do you see a steady memory use climb, until a crash? Or do you see it like a sawtooth - i.e. going up, then suddenly down, then back up again?

这篇关于我的记忆在哪里消耗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆