不断增加应用程序内存 (IOAccelResource)

编程入门 行业动态 更新时间:2024-10-28 20:25:51
本文介绍了不断增加应用程序内存 (IOAccelResource)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在努力解决一个问题(在 这个问题).上下文是:回合制游戏,使用 cocos2d 2.0 版开发,obj-c,无 ARC,目前正在准备 AppStore 更新以解决一些 iOS 7 问题(我的,不是 iOS7).

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).

我自己的仪器,以及仪器,没有泄漏,没有废弃的内存,什么都没有……平坦.在 iOS 4、5、6.1 下也曾经出现过这种情况.然而,在我提交之前的测试概要中,在设备上进行分析时,我看到每 2 分钟增加 1Mb,游戏处于空闲状态,即没有任何用户交互(见下图).

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).

我唯一能看到的是这个 IOAccelResource 类别在生成捕获之间乱跑.

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

  • 你有什么建议吗?

  • Would you have any suggestions as to what could that be ?

    我找不到很多关于 IOAccelResource 的信息……你们中的任何人都可以指出正确的阅读方向吗?如果这确实与 cocos2d 相关,我不介意在那里挖掘,但我不知道从哪里开始.

    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.

    另外,我希望尽可能以接近发布"的方式运行构建,并且仍然能够随时间测量内存占用量.你能给我推荐一种测量流程大小的方法吗?

    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.

    推荐答案

    里卡多有一半的答案:僵尸对象是其中的一部分.您需要同时启用 Zombies 和附加的进程才能获得蠕动.

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

    总结:

    • 没有僵尸,没有记忆蠕动.
    • 有僵尸,没有附加调试进程,没有内存蠕变.
    • 有僵尸,附加调试进程,内存蠕变.
  • 更多推荐

    不断增加应用程序内存 (IOAccelResource)

    本文发布于:2023-10-28 13:58:37,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1536826.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:应用程序   内存   IOAccelResource

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!