public class ProfileViewer extends Object implements TreeSelectionListener
Constructor and Description |
---|
ProfileViewer()
Creates a new profile viewer object without any data.
|
Modifier and Type | Method and Description |
---|---|
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(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(String filename)
Reads and processes the information in the provided data file into this profile viewer.
|
void |
valueChanged(TreeSelectionEvent tse)
Indicates that a node in the tree has been selected or deselected and that any appropriate action should be
taken.
|
public ProfileViewer()
processDataFile
public static void main(String[] args)
args
- The command-line arguments provided to this program.public void processDataFile(String filename) throws IOException
filename
- The path to the file containing the data to be read.IOException
- If a problem occurs while trying to read from the data file.public ProfileStackFrame[] getRootFrames()
public long getTotalIntervals()
public long getTotalDuration()
public void printProfileData()
public void displayGUI()
public void valueChanged(TreeSelectionEvent tse)
valueChanged
in interface TreeSelectionListener
tse
- The tree selection event with information about the selection or deselection that occurred.Copyright 2010-2022 ForgeRock AS.