常量应用程序内存增加(IOAccelResource) [英] constant app memory increase ( IOAccelResource )

查看:182
本文介绍了常量应用程序内存增加(IOAccelResource)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想把我的想法包裹在一个问题(eluded到此问题)。上下文是:基于回合的游戏,使用cocos2d版本2.0开发,obj-c,没有ARC,目前准备一个AppStore更新以解决一些iOS 7问题(我的,而不是iOS7)。



我自己的仪器,以及仪器,显示没有泄漏,没有遗弃的记忆,没有什么...平。这也是iOS 4,5,6.1下的情况。然而,在我提交之前的测试中,当在设备上进行性能分析时,我看到每2分钟增加1Mb,游戏处于空闲状态,即没有用户交互(见下图)。



>



我唯一能看到的是这个IOAccelResource类别在生成捕获之间运行。


  1. 您有什么建议吗?

  2. 一个IOAccelResource ...任何人都可以指向我正确的阅读方向?如果这确实是cocos2d相关,我不介意挖在那里,但我不知道从哪里开始。

  3. 此外,我想运行'释放构建,并且仍然能够随着时间测量内存占用。



您可以向我建议一种测量流程大小的方法吗?



< Ricardo有一半的答案:僵尸对象是这个的一部分。



总结:




  • 没有僵尸,没有内存蠕动。

  • 与僵尸,没有调试过程附加,没有内存蠕动。附件,内存蠕动。


I am trying to wrap my mind around an issue (eluded to in this question). The context is: turn-based game, developed with cocos2d version 2.0, obj-c, no ARC, currently prepping an AppStore update to account for some iOS 7 issues (mine, not iOS7).

My own instrumentation, as well as Instruments, show no leaks, no abandoned memory, nothing... flat. This also used to be the case under iOS 4,5,6.1. However, in my test rundown prior to submission, when profiling on device, i see a 1Mb increase per 2 minutes, with the game sitting idle, ie no user interactions whatsoever (see pic below).

The only thing i can see is this IOAccelResource category running amuck between generation capture.

  1. Would you have any suggestions as to what could that be ?
  2. I cant find much about an IOAccelResource ... can anyone of you point me in the right reading direction ? If this is indeed cocos2d related, i would not mind digging in there, but i dont know where to start looking.
  3. Also, i would like to run with 'as close to release' a build as possible, and still be able to measure the memory footprint over time. Could you suggest me a method for measuring process size ?

    tia.

解决方案

Ricardo has half the answer : zombies objects is part of this. You need both Zombies enabled AND an attached process to get the creep.

In summary :

  • no zombies, no memory creep.
  • with zombies, no debug process attached, no memory creep.
  • with zombies, debug process attached, memory creep.

这篇关于常量应用程序内存增加(IOAccelResource)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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