简体   繁体   中英

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 android 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 (eg 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 ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM