btrace.org

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.

Hi, This is NOT btrace's official site, the official site is: https://kenai.com/projects/btrace, but I'd like to introduce btrace to everyone.

BTrace 2 is also on the way: https://kenai.com/projects/btrace/sources/btrace2/show

https://kenai.com/projects/btrace/pages/UserGuide

Btrace:


btrace [-I <include-path>] [-p <port>] [-cp <classpath>] <pid> <btrace-script> [<args>]

Compile:


btracec [-I <include-path>] [-cp <classpath>] [-d <directory>] <one-or-more-BTrace-.java-files>

Run on startup:


java -javaagent:btrace-agent.jar=script=<pre-compiled-btrace-script1>[,<pre-compiled-btrace-script1>]* <MainClass> <AppArguments>

GitHub: https://github.com/jbachorik/btrace

 


Signed by: 6FAF C0E0 1709 85AA 7154 5483 C794 B164 6A88 6CD6, my keybase profile: https://hatter.in/key.

 


This is my simple btrace script generator: http://btrace.org/btrace/

BTrace with OSGI


Similar tool:Byteman