Wherever applicable, JProfiler provides access to the source code
as well as the bytecode of profiled classes and displays them in a
source and bytecode viewer frame. The source and bytecode viewer has
two tabs, one for source code and the other for bytecode. Both tabs
display the same class. Invoking the source and bytecode viewer through
source action in the View menu or context menu
displays the frame with the source tab activated, the
bytecode action activates the bytecode tab first.
To be able to show the source code of a class, the source must be
available from the
of the session. To be able to jump directly to the chosen method in the source code
viewer and to display the bytecode of a class, the class file
must be available from the
of the session. Changes in class path and source path for an
active session are recognized immediately by the source and bytecode viewer.