Show TOC Start of Content Area

Procedure documentation Managing Classes  Locate the document in its SAP Library structure

Procedure

The bytecode-modified Java classes in the Performance Tracing ® Runtime ® Application tracing ® Classes tab are marked with This graphic is explained in the accompanying text or This graphic is explained in the accompanying text.

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:

This graphic is explained in the accompanying text

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

 

End of Content Area