You can collect performance data on programs written in the JavaTM programming language, with the following restrictions.
Note: the terms "Java Virtual Machine" or "JVM" mean a virtual machine for the Java platform.
In the Performance Analyzer, methods that are compiled by the Java HotspotTM virtual machine appear in the function list and the annotated disassembly listings but not in the annotated source listings. Java methods can be compiled more than once, and each version appears as a separate function in the function list. Compiled methods are associated with the synthetic load object <DYNAMIC_FUNCTIONS>. For interpreted methods, information is reported on the parts of the JVMTM software that execute the methods.
The collector cannot obtain information on some parts of the JVM software. The corresponding frames in the call stack map to the <Unknown> function.
In the SolarisTM 8 Operating System, you can use the alternate threads library by adding /usr/lib/lwp to the LD_LIBRARY_PATH environment variable. Using this library generally results in better program performance and better performance data than using the standard library.