Thejava.lang.instrument package provides aJava™ programming language API for tools to instrument Javaprogramming language applications -- for example, to monitor themor collect performance information. Tools usejava.lang.instrument to modify the class file thatdefines a class -- generally, by inserting into the byte-code ofmethods additional byte-code which will perform theinstrumentation.
java.lang.instrument was introduced in JDK™5.0.
java.lang.managementpackage - the monitoring and management package, oftenuseful with instrumentation.