GeneralBlock 在 ObjectAlloc Instrument 中意味着什么?
我正在尝试释放我的应用程序中一些未使用的资源。我有几个 MB 的 GeneralBlock 类别(对象?),但我不知道这是什么,也不知道我应该如何释放这个 GeneralBlock。
GeneralBlock 没有明显的用途。当我启动我的应用程序时,会出现一个菜单屏幕,此时我使用了大约 300kb 的内存。在应用程序结束时,用户按下一个按钮,将他/她带回到同一个菜单屏幕,其中应该仍然只有大约 300kb 的内存正在使用,但实际上却有几乎 2.5MB 的内存!!!? ??其中大部分归因于 GeneralBlock,在某个地方闲逛。我将显示设置设置为“对象已创建且仍然存在”,因此它不能是任何已释放的对象...请赐教。
I am trying to free up some unused resources in my app. I have a couple MBs of an (object?) of category GeneralBlock and I have no clue what this is or how I should be approaching the freeing up of this GeneralBlock.
GeneralBlock has no apparent use. When I start my app there is a MENU screen at which point in time I have about 300kb of memory being used. At the end of the app, the user presses a button that brings him/her back to that same MENU screen, where there should STILL be only about 300kb of memory being used, but instead there is almost 2.5MB of memory!!!??? Most of it is attributed to GeneralBlock, hanging around somewhere. I have my display setting set to "Objects Created and Still Living" so it can't be any dealloc'd objects...Please enlighten me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 跟踪内存使用情况:
另请参阅这篇文章。
基本上,只要没有泄漏,那些 GeneralBlock 分配就没有问题。
From Tracking Memory Usage:
Also see this post.
Basically, as long as nothing is leaking, those GeneralBlock allocations are fine.