com.caucho.quercus.profile
Class ProfileReport

java.lang.Object
  extended by com.caucho.quercus.profile.ProfileReport

public class ProfileReport
extends java.lang.Object

Report of profile entries


Constructor Summary
ProfileReport(long id, java.lang.String url, long timestamp)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProfileReport

public ProfileReport(long id,
                     java.lang.String url,
                     long timestamp)
Method Detail

getId

public long getId()
Returns the report id


getUrl

public java.lang.String getUrl()
Returns the url


getTimestamp

public long getTimestamp()
Returns the time


getTotalMicros

public long getTotalMicros()
Returns the total time in microseconds


getItemList

public java.util.ArrayList<ProfileItem> getItemList()
Returns the list of profile items.


getMethods

public java.util.ArrayList<ProfileMethod> getMethods()
Returns the list of methods, sorted by self.


getMethodsBySelfMicros

public java.util.ArrayList<ProfileMethod> getMethodsBySelfMicros()
Returns the list of methods, sorted by self.


addItem

public void addItem(java.lang.String name,
                    java.lang.String parent,
                    long count,
                    long micros)
Adds a profile item.


findMethodByIndex

public ProfileMethod findMethodByIndex(int id)
Returns the method by its id.


findMethodByName

public ProfileMethod findMethodByName(java.lang.String name)
Returns the method by its name.


getMethod

protected ProfileMethod getMethod(java.lang.String name)
Returns the ProfileMethod for the given method name


printHotSpotReport

public void printHotSpotReport(java.io.OutputStream os)
                        throws java.io.IOException
Printable flat report

Throws:
java.io.IOException

printHierarchyReport

public void printHierarchyReport(java.io.OutputStream os)
                          throws java.io.IOException
Printable hierarchy report

Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object