在cmd里面输入命令
http://www.oracle.com/technetwork/articles/java/jconsole-1564139.html
jconsole
http://www.oracle.com/technetwork/articles/java/jconsole-1564139.html
javac -Xlint:fallthrough 在eclipse里面如何配置这个命令。
是用该命令需要注意一点,需要将jdk目录下的jre\bin目录添加到环境变量path中。
If you launch the Java virtual machine with the -Xprof flag, it runs a rudimentaryprofler that keeps track of the methods in your code that were executed
most often. The profling information is sent to System.out. The output also tells
you which methods were compiled by the just-in-time compiler.
7.6 Debugging Tips 413
CAUTION: The -Xoptions of the compiler are not offcially supported and may
not be present in all versions of the JDK. Run java -Xto get a listing of all
nonstandard options.
This chapter introduced you to exception handling and logging. You also saw
useful hints for testing and debugging. The next two chapters cover generic programming and its most important application: the Java collections framework.