Source

rt-coverage /

Filename Size Date modified Message
src
src_test/tbrugz/rtcoverage/test
500 B
82 B
392 B
1.0 KB
887 B
53 B
2.0 KB
119 B
710 B
1.2 KB

Runtime Coverage

Utility that shows which jars/classes are effectively used by a Java program by monitoring the classloading mechanism.

Author: Telmo Brugnara <tbrugz@gmail.com>

License: AGPLv3

Dependencies

  • apache-commons-logging
  • log4j
  • jdk 1.5 (especially "jdk.home"/lib/tools.jar)

Running Options

The following system properties may be set for extra debugging:

  • mon.thread - monitors thread start & thread death events
  • mon.exception - monitors exception events

Usage

java <system-properties> -cp rt-coverage.jar;commons-logging-1.1.1.jar;log4j-1.2.15.jar;<jdk.home>/lib/tools.jar tbrugz.rtcoverage.RuntimeCoverage <your.package.MainClass>

example: java -Dmon.thread -cp rt-coverage.jar;commons-logging-1.1.1.jar;log4j-1.2.15.jar;tools.jar tbrugz.rtcoverage.RuntimeCoverage -cp dist/rt-coverage-test.jar tbrugz.rtcoverage.test.DivAurea

or take a look at build.xml: run-rt-coverage