Created
March 18, 2016 10:35
-
-
Save khajavi/8bec39ac19d2127c1d6a to your computer and use it in GitHub Desktop.
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
val mb = 1024*1024 | |
val runtime = Runtime.getRuntime | |
println("** Used Memory: " + (runtime.totalMemory - runtime.freeMemory) / mb) | |
println("** Free Memory: " + runtime.freeMemory / mb) | |
println("** Total Memory: " + runtime.totalMemory / mb) | |
println("** Max Memory: " + runtime.maxMemory / mb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment