I am developing an iPhone game with cocos2d-iphone.
I am particularly interested in how much memory is CCSpriteFrameCache “holding” at the moment. I am wondering – is there a way to know that? Without using any Xcode tools?
Perhaps there is a variable that will already let me know an estimate memory consumption value on my app?
Actually if you are concerned about memory consumption of your textures, they are stored by CCTextureCache. There is a CCTextureCache (Debug) method called dumpCachedTextureInfo method in there. I have not tried it myself, but here :
You want to calculate per texture the bit format, since it is possible to store different texture formats in the cache, depending on your current needs. It will give you (last line) the summary of contents, including total memory consumed.