Created
February 20, 2019 12:23
-
-
Save vorobeij/aa0444b5233955094d82e37e730ab7ea to your computer and use it in GitHub Desktop.
memory app android
This file contains hidden or 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
override fun getAllocatedMemoryMb(): Int { | |
val pids = intArrayOf(android.os.Process.myPid()) | |
return activityManager.getProcessMemoryInfo(pids)[0].totalPss / 1000 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment