Last active
November 11, 2022 05:03
-
-
Save Morfly/356608d3e453484b410cbdde88197644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.Debug.MemoryInfo | |
val memoryInfo: MemoryInfo = ... | |
val ussKb = with(memoryInfo) { | |
getTotalPrivateClean() + getTotalPrivateDirty() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment