2015-10-13 75 views

回答

0

在你的具體的例子總內存的Android慧深庫分配的內存中的所有緩存的總和

Caches: 
Current memory usage/total memory usage (bytes): 
    TextureCache   74625498/75497472 
    LayerCache   3538944/50331648 (numLayers = 3) 
    Layer size 1440x810; isTextureLayer()=1; texid=24 fbo=0; refs=1 
    Layer size 1440x810; isTextureLayer()=1; texid=42 fbo=0; refs=1 
    Layer size 1440x810; isTextureLayer()=1; texid=48 fbo=0; refs=1 
    Layer size 1344x192; isTextureLayer()=0; texid=40 fbo=0; refs=1 
    Layer size 1472x192; isTextureLayer()=0; texid=41 fbo=0; refs=1 
    Layer size 1344x256; isTextureLayer()=0; texid=23 fbo=0; refs=1 
    Layers total 17535744 (numLayers = 6) 
    RenderBufferCache   0/8388608 
    GradientCache   32768/1048576 
    PathCache    1260/33554432 
    TessellationCache   0/1048576 
    TextDropShadowCache   0/6291456 
    PatchCache    128/ 131072 
    FontRenderer 0 A8  1048576/1048576 
    FontRenderer 0 RGBA   0/  0 
    FontRenderer 0 total 1048576/1048576 
Other: 
    FboCache     0/  0 
Total memory usage: 
    93243974 bytes, 88.92 MB 

The total memory 88.92 MB是分配的內存爲TextureCache總和 + 層共有 + ... + FboCache

此輸出變爲從Android HWUI庫 - 這是實現Android的用戶界面基於OpenGL硬件加速繪製庫

更多細節可以在源代碼中讀取,例如here

相關問題