1 # Dex Code Model 2 3 The value of the Dex Code model is the sum of the original uncompressed file 4 sizes of all loaded dex files. It is calculated using the best approximation 5 of the dex file size available to us on device. On Android O, for example, 6 this can be approximated as the virtual size of the corresponding memory 7 mapped `.vdex` file read from `/proc/self/maps`. Different Android platform 8 versions and scenarios may require different approximations. 9 10 The actionable breakdown of the dex code model is a breakdown by 11 `dalvik.system.DexFile` instance. Further breakdown of individual dex files 12 can be achieved using tools such as dexdump. 13 14 For example, for an application `AmmTest.apk` that has a single `classes.dex` file 15 that is 500 KB uncompressed, the `DexFile` instance for 16 `/data/app/com.android.amm.test-_uHI4CJWpeoztbjN6Tr-Nw==/base.apk` is shown as 17 Taking up 500 KB (or the best available approximation thereof). 18