Occupied texture memory allocated by CCLabelTTF

Its there any possibility how to check occupied texture memory allocated by CCLabelTTF?

Something like CCTextureCache::dumpCachedTextureInfo().

I think you can check the ref count of element managed by CCTextureCache.
There is not an exist implementation, you should do it yourself.
Why you need this feature?

If I create CCLabelTTF its internaly TTF string rendered to new texture, which is renderen on screen right?

I need know all memory which is occupied by all textures (images loaded in memory and memory allocated by creating CCLabelTTF).
This amount of allocated memory ist good to know for optimising for porting on different devices (its a main part of all memory what application consump).

A found VolatileTexture, which store information about all allocated textures. But there is missing dimension information about CCLabelTTF textures.

I implemented dump function for VolatileTexture, Here is example of dump:
cocos2d: “C:*640x960.png" 1024 x 1024 @ 32 bpp => 4096 KB
cocos2d: “C:.png” 2048 x 2048 @ 32 bpp => 16384 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “C:*assets.png” 2048 x 1024 @ 32 bpp => 8192 KB
cocos2d: “C:*assets_ui.png” 1024 x 512 @ 32 bpp => 2048 KB
cocos2d: "C:*1.png” 512 x 512 @ 32 bpp => 1024 KB
cocos2d: “C:.png” 256 x 256 @ 32 bpp => 256 KB
cocos2d: “C:.png” 512 x 256 @ 32 bpp => 512 KB
cocos2d: “C:.png” 64 x 128 @ 32 bpp => 32 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Arial.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Arial.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Arial.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Arial.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Arial.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Arial.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Arial.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Comfortaa.ttf” 0 x 0 @ 32 bpp => 0 KB
cocos2d: “Arial” 0 x 0 @ 32 bpp => 0 KB
cocos2d: CCTextureCache dumpDebugInfo: 27 textures, for 32544 KB (31.78 MB)

I can do similarly collection and dump in CCLabelTTF, but it will be better to have it on the same place with other textures.

I have all necessenary information about TTF textures for full texture list. So I included changed class.

For working on Win is necessenary to modify CCPlatformMacros.h on line 42:
#if (CC_TARGET_PLATFORM CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM CC_PLATFORM_WIN32)

Information are really interesting, because each CCLabelTTF allocated own texture which must be pow of two.
So allocated memory can be large (for example help allocated 10MB).