Show TOC

 Managing ClassesLocate this document in the navigation structure

Procedure

The bytecode-modified Java classes in the Performance Tracing → Runtime → Application tracing → Classes tab are marked with  or .

Since Java does not provide a suitable method for retrieving the definition of an already loaded class, the application tracing attempts to get it by assuming the usual behavior of the class loaders - requesting the slash-separated fully-qualified class name concatenated with .class from its class loader:

Note
class c;
String resourceName = c.getName().replace('.', '/') + ".class";
InputStream in = c.getClassLoader().getResourceAsStream(resourceName);
// ... Read the stream fully

You can apply different actions to each class:

Class Actions

Action Description

Browse as an object

Adds a java.lang.Class to the object browser.

View source

Attempts to retrieve the source of the class depending on the current settings.

See also:

Managing Objects