public class ProfileReport
extends java.lang.Object
Constructor and Description |
---|
ProfileReport(long id,
java.lang.String url,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.lang.String name,
java.lang.String parent,
long count,
long micros)
Adds a profile item.
|
ProfileMethod |
findMethodByIndex(int id)
Returns the method by its id.
|
ProfileMethod |
findMethodByName(java.lang.String name)
Returns the method by its name.
|
long |
getId()
Returns the report id
|
java.util.ArrayList<ProfileItem> |
getItemList()
Returns the list of profile items.
|
protected ProfileMethod |
getMethod(java.lang.String name)
Returns the ProfileMethod for the given method name
|
java.util.ArrayList<ProfileMethod> |
getMethods()
Returns the list of methods, sorted by self.
|
java.util.ArrayList<ProfileMethod> |
getMethodsBySelfMicros()
Returns the list of methods, sorted by self.
|
long |
getTimestamp()
Returns the time
|
long |
getTotalMicros()
Returns the total time in microseconds
|
java.lang.String |
getUrl()
Returns the url
|
void |
printHierarchyReport(java.io.OutputStream os)
Printable hierarchy report
|
void |
printHotSpotReport(java.io.OutputStream os)
Printable flat report
|
java.lang.String |
toString() |
public ProfileReport(long id, java.lang.String url, long timestamp)
public long getId()
public java.lang.String getUrl()
public long getTimestamp()
public long getTotalMicros()
public java.util.ArrayList<ProfileItem> getItemList()
public java.util.ArrayList<ProfileMethod> getMethods()
public java.util.ArrayList<ProfileMethod> getMethodsBySelfMicros()
public void addItem(java.lang.String name, java.lang.String parent, long count, long micros)
public ProfileMethod findMethodByIndex(int id)
public ProfileMethod findMethodByName(java.lang.String name)
protected ProfileMethod getMethod(java.lang.String name)
public void printHotSpotReport(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void printHierarchyReport(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object