local textureMemory = math.floor(cc.Director:getInstance():getTextureCache():getTextureMemory()/1024)
local str = string.format("現(xiàn)在內(nèi)存是: %sM", textureMemory)
print(str)
g_writeErrorLog(cc.Director:getInstance():getTextureCache():getCachedTextureInfo(), "紋理占用", true)
--因為打印太多 所以用寫日志的方式
g_writeErrorLog參考文章
http://www.reibang.com/p/5bf0702e745e