|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.plugins.profiler.ProfileViewer
public class ProfileViewer
This class defines a Directory Server utility that may be used to view profile information that has been captured by the profiler plugin. It supports viewing this information in either a command-line mode or using a simple GUI.
Constructor Summary | |
---|---|
ProfileViewer()
Creates a new profile viewer object without any data. |
Method Summary | |
---|---|
void |
displayGUI()
Displays a simple GUI with the profile data. |
ProfileStackFrame[] |
getRootFrames()
Retrieves an array containing the root frames for the profile information. |
long |
getTotalDuration()
Retrieves the total duration in milliseconds covered by the profile data. |
long |
getTotalIntervals()
Retrieves the total number of sample intervals for which profile data is available. |
static void |
main(java.lang.String[] args)
Parses the command-line arguments and creates an instance of the profile viewer as appropriate. |
void |
printProfileData()
Prints the profile information to standard output in a human-readable form. |
void |
processDataFile(java.lang.String filename)
Reads and processes the information in the provided data file into this profile viewer. |
void |
valueChanged(javax.swing.event.TreeSelectionEvent tse)
Indicates that a node in the tree has been selected or deselected and that any appropriate action should be taken. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileViewer()
processDataFile
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- The command-line arguments provided to this program.public void processDataFile(java.lang.String filename) throws java.io.IOException, ASN1Exception
filename
- The path to the file containing the data to be read.
java.io.IOException
- If a problem occurs while trying to read from the
data file.
ASN1Exception
- If an error occurs while trying to decode the
contents of the file into profile stack objects.public ProfileStackFrame[] getRootFrames()
public long getTotalIntervals()
public long getTotalDuration()
public void printProfileData()
public void displayGUI()
public void valueChanged(javax.swing.event.TreeSelectionEvent tse)
valueChanged
in interface javax.swing.event.TreeSelectionListener
tse
- The tree selection event with information about the selection
or deselection that occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |