GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - java-xx/btrace: BTrace - a safe, dynamic tracing tool for the Java platform

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

920 Commits
920 Commits

Folders and files

NameName
Last commit message
Last commit date
benchmark
benchmark
 
 
bin
bin
 
 
docs
docs
 
 
gradle/wrapper
gradle/wrapper
 
 
lib
lib
 
 
make
make
 
 
nbproject
nbproject
 
 
packaging/debian/btrace
packaging/debian/btrace
 
 
samples
samples
 
 
src
src
 
 
test-lib
test-lib
 
 
.gitignore
.gitignore
 
 
.hgignore
.hgignore
 
 
.travis.yml
.travis.yml
 
 
COPYRIGHT
COPYRIGHT
 
 
LICENSE
LICENSE
 
 
LICENSE-3RD-PARTY.txt
LICENSE-3RD-PARTY.txt
 
 
README.md
README.md
 
 
THIRDPARTYLICENSEREADME.txt
THIRDPARTYLICENSEREADME.txt
 
 
bintray.json
bintray.json
 
 
btraceio.png
btraceio.png
 
 
btraceio_small.png
btraceio_small.png
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
index.html
index.html
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Download Build Status codecov.io Join the chat at https://gitter.im/jbachorik/btrace Project Stats

btrace

A safe, dynamic tracing tool for the Java platform

Version

1.3.9 (Release Page)

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

Credits

  • Based on ASM
  • Powered by JCTools
  • Powered by hppcrt
  • Optimized with JProfiler Java Profiler

Building BTrace

Setup

You will need the following applications installed

  • JDK (preferrably JDK8)
  • Git
  • Gradle
  • (optionally) Ant
  • (optionally) Maven3

Build

Gradle

cd <btrace>
./gradlew build
./gradlew buildDistributions

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

Ant (legacy 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

Download a distribution file from the release page. Explode the 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.

Or, alternatively, you may install one of the *.rpm or *.deb packages

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.

Maven Integration

The maven plugin is providing easy compilation of BTrace scripts as a part of the build process. As a bonus you can utilize the BTrace Project Archetype to bootstrap developing BTrace scripts.

Mailing lists

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

  • [email protected]
  • [email protected]
  • [email protected]

Contributing - !!! Important !!!

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

Deb Repository

Using the command line, add the following to your /etc/apt/sources.list system config file:

echo "deb http://dl.bintray.com/btraceio/deb trusty universe" | sudo tee -a /etc/apt/sources.list

Or, add the repository URLs using the "Software Sources" admin UI:

deb http://dl.bintray.com/btraceio/deb trusty universe

RPM Repository

Grab the *.repo file wget https://bintray.com/btraceio/rpm/rpm -O bintray-btraceio-rpm.repo and use it.

About

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

Resources

Readme
GPL-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.