BTrace (Java edition DTrace)

BTrace is a safe, dynamic tracing tool for the Java platform. BTrace can be used to dynamically trace a running Java program (similar to DTrace for OpenSolaris applications and OS). BTrace dynamically instruments the classes of the target application to inject tracing code ("bytecode tracing"). Tracing code is expressed in Java programming language. There is also integration with DTrace for the OpenSolaris platform.

官方网站: http://kenai.com/projects/btrace/

 wget https://hatter-source-code.googlecode.com/svn/trunk/btracescripts/btrace/btrace-bin.tar.gz

My btrace scripts: https://hatter-source-code.googlecode.com/svn/trunk/btracescripts/main/src/