开发者

What does Asset Allocations mean in adb shell dumpsys meminfo

Can anybody tell me what does Asset Allocations mean in adb shell dumpsys meminfo Android? I see this at start up my an开发者_JAVA技巧droid device and I see my application's resources.arsc is consuming 516K even though my app is not running.

Thanks.


With resources.arsc, there are two things that can happen.

Normally, the file is stored in the .apk uncompressed. Android mmap()s the file and just reads from it as necessary, without loading the whole file into RAM.

If it's compressed however, direct random access into the file is no longer an option, so it gets decompressed and kept in memory for further operations (e.g. loading a string).

I'm not sure why this would be the case if the app is not running. Perhaps it's kept around as a background process?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜