Created
October 10, 2009 08:35
-
-
Save dblevins/206723 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 junit.framework.TestCase; | |
public class MemoryTest extends TestCase { | |
public void test() { | |
Runtime runtime = Runtime.getRuntime(); | |
System.out.println("maxMemory = " + runtime.maxMemory()); | |
System.out.println("freeMemory = " + runtime.freeMemory()); | |
System.out.println("totalMemory = " + runtime.totalMemory()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment