BTrace JARs Available as Maven Artifacts
Join the DZone community and get the full member experience.Join For Free
BTrace is 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.
You can enhance VisualVM with the BTrace plugin to be able to write and deploy BTrace scripts directly from VisualVM. Alternatively, if you'd prefer you can run BTrace from command line shells as well.
Opinions expressed by DZone contributors are their own.