|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MethodProfilerMXBean
MXBean interface for the JRockit Method Profiler.
Method Summary | |
---|---|
long |
getExceptionCount(java.lang.String throwableClass)
Will get the sum of the exception counts for all the classes found using the qualified name. |
long |
getInvocationCount(MethodIdentifier method)
Returns the invocation count since enabling invocation counting for the for the specified method. |
MethodIdentifier[] |
getMethods(java.lang.String fullyQualifiedClassName)
Used to retrieve the set of methods available for a certain class. |
long |
getTiming(MethodIdentifier method)
Returns the amount of time spent performing work in a method, since enabling timing (in miliseconds). |
boolean |
isExceptionCountEnabled(java.lang.String throwableClass)
Will return true if exception count is enabled for all classes matching the name. |
boolean |
isInvocationCountEnabled(MethodIdentifier method)
Returns true if invocation counting is enabled for the specified method. |
boolean |
isTimingEnabled(MethodIdentifier method)
Checks whether timing is enabled or not for a certain method. |
void |
setExceptionCountEnabled(java.lang.String throwableClass,
boolean enable,
boolean includeAllSubclasses)
Will enable exception counting for all classes matching the name. |
void |
setInvocationCountEnabled(MethodIdentifier method,
boolean enable)
Enables or disables invocation counting for the specified method depending on the enable argument. |
void |
setTimingEnabled(MethodIdentifier method,
boolean enable)
Enables or disables timing (that is, measure time spent in) depending on the enable argument. |
Method Detail |
---|
long getTiming(MethodIdentifier method) throws java.lang.ClassNotFoundException, MalformedDescriptorException, java.lang.NoSuchMethodException, NotAvailableException, UnapplicableMethodException
method
- the MethodIdentifier to return timing information about. If
the method is null, a NullPointerException will be thrown.
java.lang.ClassNotFoundException
- if the class for the method can't be found.
MalformedDescriptorException
- if there is a syntax error in the method descriptor.
java.lang.NoSuchMethodException
- if the method can't be found.
NotAvailableException
- if this functionality isn't available in the JVM.
UnapplicableMethodException
- if timing hasn't been enabled for the method, or if the
method is native or abstract.long getInvocationCount(MethodIdentifier method) throws java.lang.ClassNotFoundException, MalformedDescriptorException, java.lang.NoSuchMethodException, NotAvailableException, UnapplicableMethodException
method
- the MethodIdentifier to return timing information about. If
the method is null, a NullPointerException will be thrown.
java.lang.ClassNotFoundException
- if the class for the method can't be found.
MalformedDescriptorException
- if there is a syntax error in the method descriptor.
java.lang.NoSuchMethodException
- if the method can't be found.
NotAvailableException
- if this functionality isn't available in the JVM.
UnapplicableMethodException
- if timing hasn't been enabled for the method, or if the
method is native or abstract.void setInvocationCountEnabled(MethodIdentifier method, boolean enable) throws java.lang.ClassNotFoundException, MalformedDescriptorException, NotAvailableException, java.lang.NoSuchMethodException, java.lang.SecurityException, UnapplicableMethodException
method
- the MethodIdentifer 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.
java.lang.ClassNotFoundException
- if the class for the method can't be found.
MalformedDescriptorException
- if there is a syntax error in the method descriptor.
NotAvailableException
- if this functionality isn't available in the JVM.
java.lang.NoSuchMethodException
- if the method can't be found.
java.lang.SecurityException
- if you don't have the control permission set.
UnapplicableMethodException
- if timing hasn't been enabled for the method, or if the
method is native or abstract.ManagementPermission
boolean isInvocationCountEnabled(MethodIdentifier method) throws java.lang.ClassNotFoundException, MalformedDescriptorException, NotAvailableException, java.lang.NoSuchMethodException, UnapplicableMethodException
method
- the method we wish to check. If the method is
null, a NullPointerException will be thrown.
java.lang.ClassNotFoundException
- if the class for the method can't be found.
MalformedDescriptorException
- if there is a syntax error in the method descriptor.
java.lang.NoSuchMethodException
- if the method can't be found.
NotAvailableException
- if this functionality isn't available in the JVM.
UnapplicableMethodException
- if timing hasn't been enabled for the method, or if the
method is native or abstract.void setTimingEnabled(MethodIdentifier method, boolean enable) throws java.lang.ClassNotFoundException, MalformedDescriptorException, NotAvailableException, java.lang.NoSuchMethodException, UnapplicableMethodException, java.lang.SecurityException
method
- the MethodIdentfier to enable/disable timing for. If the method
is null, a NullPointerException will be thrown.enable
- true to enable, false to disable.
java.lang.ClassNotFoundException
- if the class for the method can't be found.
MalformedDescriptorException
- if there is a syntax error in the method descriptor.
java.lang.NoSuchMethodException
- if the method can't be found.
NotAvailableException
- if this functionality isn't available in the JVM.
SecurityPermission
- if you don't have the control permission set.
UnapplicableMethodException
- if timing hasn't been enabled for the method, or if the
method is native or abstract.
java.lang.SecurityException
ManagementPermission
boolean isTimingEnabled(MethodIdentifier method) throws UnapplicableMethodException, java.lang.NoSuchMethodException, MalformedDescriptorException, UnapplicableMethodException, NotAvailableException, java.lang.ClassNotFoundException
method
- the MethodIdentfier for which check if timing is enabled. If the
method is null, a NullPointerException will be thrown.
java.lang.ClassNotFoundException
- if the class for the method can't be found.
MalformedDescriptorException
- if there is a syntax error in the method descriptor.
java.lang.NoSuchMethodException
- if the method can't be found.
NotAvailableException
- if this functionality isn't available in the JVM.
UnapplicableMethodException
- if timing hasn't been enabled for the method, or if the
method is native or abstract.MethodIdentifier[] getMethods(java.lang.String fullyQualifiedClassName) throws java.lang.ClassNotFoundException, NotAvailableException
fullyQualifiedClassName
- all the methods available for a certain class.
java.lang.ClassNotFoundException
- if no matching class could be found.
NotAvailableException
- if this functionality isn't available in the JVM.long getExceptionCount(java.lang.String throwableClass) throws java.lang.ClassNotFoundException, java.lang.ClassCastException, NotAvailableException
java.lang.ClassNotFoundException
- if no matching class could be found.
NotAvailableException
- if this functionality isn't available in the JVM.
java.lang.ClassCastException
boolean isExceptionCountEnabled(java.lang.String throwableClass) throws java.lang.ClassCastException, java.lang.ClassNotFoundException, NotAvailableException
throwableClass
- the name of 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
java.lang.ClassNotFoundException
- if no matching class could be found.
NotAvailableException
- if this functionality isn't available in the JVM.void setExceptionCountEnabled(java.lang.String throwableClass, boolean enable, boolean includeAllSubclasses) throws java.lang.ClassCastException, java.lang.ClassNotFoundException, NotAvailableException, java.lang.SecurityException
java.lang.ClassCastException
- if the argument is not a subclass of Throwable
java.lang.ClassNotFoundException
- if no matching class could be found.
NotAvailableException
- if this functionality isn't available in the JVM.
SecurityPermission
- if you don't have the control permission set.
java.lang.SecurityException
ManagementPermission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |