Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法查询驻留在给定 NSAutoreleasePool 中的对象数量?
这对我来说非常重要,因为在我的游戏中有几个循环,我需要知道我自动释放我的自动释放对象的效率。
没有。
大概你有某种主控制循环来运行你的游戏。只需在每次迭代开始时创建一个自动释放池并在迭代结束时销毁它。