Java(TM) java.lang.instrument (original) (raw)
The java.lang.instrument
package provides a Java™ programming language API for tools to instrument Java programming language applications -- for example, to monitor them or collect performance information. Tools usejava.lang.instrument
to modify the class file that defines a class -- generally, by inserting into the byte-code of methods additional byte-code which will perform the instrumentation.
java.lang.instrument
was introduced in JDK™ 5.0.
API Specification
API Enhancements
- See the API Enhancements in JDK 6 - An annotated list of API changes between the 5.0 and 6 releases.
More Information
- Java Virtual Machines Tool Interface - a native interface which can also perform instrumentation.
- java.lang.management package - the monitoring and management package, often useful with instrumentation.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved.