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