|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for retrieving profiling information from JRockit.
Method Summary | |
long |
getExceptionCount(java.lang.Class throwableClass)
Returns the current exception count for the specified type. |
long |
getInvocationCount(java.lang.reflect.Constructor constructor)
Returns the invocation count since enabling invocation counting for the for the specified constructor. |
long |
getInvocationCount(java.lang.reflect.Method method)
Returns the invocation count since enabling invocation counting for the for the specified method. |
long |
getTiming(java.lang.reflect.Constructor constructor)
Returns the amount of time spent performing work in the constructor since enabling timing (in miliseconds). |
long |
getTiming(java.lang.reflect.Method method)
Returns the amount of time spent performing work in the method, since enabling timing (in miliseconds). |
boolean |
isExceptionCountEnabled(java.lang.Class throwableClass)
Returns whether exception counting for the Throwable is enabled or not. |
boolean |
isInvocationCountEnabled(java.lang.reflect.Constructor constructor)
Returns true if invocation counting is enabled for the specified constructor. |
boolean |
isInvocationCountEnabled(java.lang.reflect.Method method)
Returns true if invocation counting is enabled for the specified method. |
boolean |
isTimingEnabled(java.lang.reflect.Constructor constructor)
Checks whether timing is enabled or not for the specified constructor. |
boolean |
isTimingEnabled(java.lang.reflect.Method method)
Checks whether timing is enabled or not for a certain method. |
void |
setExceptionCountEnabled(java.lang.Class throwableClass,
boolean enable,
boolean includeAllSubclasses)
Enables or disables exception counting for a certain class of exceptions. |
void |
setInvocationCountEnabled(java.lang.reflect.Constructor constructor,
boolean enable)
Enables or disables invocation counting for the specified constructor depending on the enable argument. |
void |
setInvocationCountEnabled(java.lang.reflect.Method method,
boolean enable)
Enables or disables invocation counting for the specified method depending on the enable argument. |
void |
setTimingEnabled(java.lang.reflect.Constructor constructor,
boolean enable)
Enables or disables timing (that is, measure time spent in) depending on the enable argument. |
void |
setTimingEnabled(java.lang.reflect.Method method,
boolean enable)
Enables or disables timing (that is, measure time spent in) depending on the enable argument. |
Methods inherited from interface com.bea.jvm.Describable |
getDescription |
Method Detail |
public void setInvocationCountEnabled(java.lang.reflect.Method method, boolean enable) throws NotAvailableException, UnapplicableMethodException
method
- the method we wish to enable or disble invocation
counting for. If the method is null, a NullPointerException will
be thrown.enable
- true to enable, false to disable.
UnapplicableMethodException
- if the method is native or abstract.
NotAvailableException
- if this functionality isn't available in
this JVM.public void setInvocationCountEnabled(java.lang.reflect.Constructor constructor, boolean enable) throws NotAvailableException
constructor
- the method we wish to enable or disble invocation
counting for. If the constructor is null, a NullPointerException
will be thrown.enable
- true to enable, false to disable.
NotAvailableException
- if this functionality isn't available in
this JVM.public boolean isInvocationCountEnabled(java.lang.reflect.Method method) throws NotAvailableException, UnapplicableMethodException
method
- the method we wish to check. If the method is
null, a NullPointerException will be thrown.
UnapplicableMethodException
- if the method is native or abstract.
NotAvailableException
- if this functionality isn't available in
this JVM.public boolean isInvocationCountEnabled(java.lang.reflect.Constructor constructor) throws NotAvailableException
constructor
- the method we wish to check. If the constructor is
null, a NullPointerException will be thrown.
NotAvailableException
- if this functionality isn't available in
this JVM.public long getInvocationCount(java.lang.reflect.Method method) throws NotAvailableException, UnapplicableMethodException
method
- the method for which to return the invocation count. If
the method is null, a NullPointerException will be thrown.
UnapplicableMethodException
- if invocation counting hasn't been
enabled for the method in question, or if the method is native
or abstract.
NotAvailableException
- if this functionality isn't available in
this JVM.public long getInvocationCount(java.lang.reflect.Constructor constructor) throws NotAvailableException, UnapplicableMethodException
constructor
- the method for which to return the invocation count.
If the constructor is null, a NullPointerException will be
thrown.
UnapplicableMethodException
- if invocation counting hasn't been
enabled for the constructor in question.
NotAvailableException
- if this functionality isn't available in
this JVM.public void setTimingEnabled(java.lang.reflect.Method method, boolean enable) throws NotAvailableException, UnapplicableMethodException
method
- the method to enable/disable timing for. If the method
is null, a NullPointerException will be thrown.enable
- true to enable, false to disable.
UnapplicableMethodException
- if the method is native or abstract.
NotAvailableException
- if this functionality isn't available in
this JVM.public void setTimingEnabled(java.lang.reflect.Constructor constructor, boolean enable) throws NotAvailableException
constructor
- the method to enable/disable timing for. If the
constructor is null, a NullPointerException will be thrown.enable
- true to enable, false to disable.
NotAvailableException
- if this functionality isn't available in
this JVM.public boolean isTimingEnabled(java.lang.reflect.Method method) throws NotAvailableException, UnapplicableMethodException
method
- the method for which check if timing is enabled. If the
method is null, a NullPointerException will be thrown.
UnapplicableMethodException
- if the method is native or abstract.
NotAvailableException
- if this functionality isn't available in
this JVM.public boolean isTimingEnabled(java.lang.reflect.Constructor constructor) throws NotAvailableException
constructor
- the constructor for which to retrieve the timing. If
the constructor is null, a NullPointerException will be thrown.
NotAvailableException
- if this functionality isn't available in
this JVM.public long getTiming(java.lang.reflect.Method method) throws NotAvailableException, UnapplicableMethodException
method
- the method to return timing information about. If the
method is null, a NullPointerException will be thrown.
UnapplicableMethodException
- if timing hasn't been enabled for
the method, or if the method is native or abstract.
NotAvailableException
- if this functionality isn't available in
this JVM.public long getTiming(java.lang.reflect.Constructor constructor) throws NotAvailableException
constructor
- the constructor to return timing information about.
If the constructor is null, a NullPointerException will be
thrown.
NotAvailableException
- if this functionality isn't available in
this JVM.public void setExceptionCountEnabled(java.lang.Class throwableClass, boolean enable, boolean includeAllSubclasses) throws java.lang.ClassCastException
throwableClass
- the exception class to enable/disable
counting for. If the throwableClass is null, a
NullPointerException will be thrown.enable
- true to enable, false to disable.includeAllSubclasses
- indicates whether subclasses to
throwableClass will also contribute to the count.
java.lang.ClassCastException
- the argument throwableClass is not a subclass
of Throwable.public long getExceptionCount(java.lang.Class throwableClass) throws java.lang.ClassCastException
throwableClass
- the exception class to get the counter for.
If the throwableClass is null, a NullPointerException will be
thrown.
java.lang.ClassCastException
- if the argument is not a subclass of
Throwable.public boolean isExceptionCountEnabled(java.lang.Class throwableClass) throws java.lang.ClassCastException
throwableClass
- the exception class to get the counter for.
If the throwableClass is null, a NullPointerException will be
thrown.
java.lang.ClassCastException
- if the argument is not a subclass of
Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |