lotusws / btrace

BTrace - a safe, dynamic tracing tool for the Java platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

btrace

A safe, dynamic tracing tool for the Java platform

Version

1.2

Quick Summary

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").

Building BTrace

Setup

You will need the following applications installed

Build

cd <btrace>/make
ant dist

The binary dist packages can be found in <btrace>/dist as the *.tar.gz and *.zip files

Using BTrace

Installation

Explode a binary distribution file (either *.tar.gz or *.zip) to a directory of your choice

You may set the system environment variable BTRACE_HOME to point to the directory containing the exploded distribution.

You may enhance the system environment variable PATH with $BTRACE_HOME/bin for your convenience.

Running

  • <btrace>/bin/btrace <PID> <trace_script> will attach to the java application with the given PID and compile and submit the trace script
  • <btrace>/bin/btracec <trace_script> will compile the provided trace script
  • <btrace>/bin/btracer <compiled_script> <args to launch a java app> will start the specified java application with the btrace agent running and the script previously compiled by btracec loaded

For the detailed user guide, please, check the Wiki.

Mailing lists

These mailing lists are hosted at http://librelist.com

CI

A continuous integration is being run on Travis CI

Contributing - !!! Important !!!

Pull requests can be accepted only from the signers of Oracle Contributor Agreement

About

BTrace - a safe, dynamic tracing tool for the Java platform

License:GNU General Public License v2.0


Languages

Language:Java 99.0%Language:Shell 0.6%Language:Perl 0.2%Language:C 0.1%Language:D 0.0%