Skip to content
forked from btraceio/btrace

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

License

Notifications You must be signed in to change notification settings

chinpeng/btrace

This branch is 1061 commits behind btraceio/btrace:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Jaroslav Bachorik
Oct 6, 2014
f3c2604 · Oct 6, 2014
Oct 6, 2014
Sep 3, 2014
Dec 21, 2009
May 14, 2014
Sep 3, 2014
Jul 28, 2014
Oct 6, 2014
Oct 6, 2014
Jul 28, 2014
Sep 8, 2014
Jul 21, 2014
Sep 1, 2014
Mar 6, 2008
Aug 29, 2014
Sep 3, 2014
Aug 29, 2014
Oct 6, 2014

Repository files navigation

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.

CI

A continuous integration is being run on Travis CI

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published