|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProfilingSystem
Interface for retrieving profiling information from JRockit.
Method Summary | |
---|---|
long |
getExceptionCount(java.lang.Class throwableClass)
Deprecated. Use ProfileEntries instead |
long |
getInvocationCount(java.lang.reflect.Constructor constructor)
Deprecated. Use ProfileEntries instead |
long |
getInvocationCount(java.lang.reflect.Method method)
Deprecated. Use ProfileEntries instead |
long |
getTiming(java.lang.reflect.Constructor constructor)
Deprecated. Use ProfileEntries instead |
long |
getTiming(java.lang.reflect.Method method)
Deprecated. Use ProfileEntries instead |
boolean |
isExceptionCountEnabled(java.lang.Class throwableClass)
Deprecated. Use ProfileEntries instead |
boolean |
isInvocationCountEnabled(java.lang.reflect.Constructor constructor)
Deprecated. Use ProfileEntries instead |
boolean |
isInvocationCountEnabled(java.lang.reflect.Method method)
Deprecated. Use ProfileEntries instead |
boolean |
isTimingEnabled(java.lang.reflect.Constructor constructor)
Deprecated. Use ProfileEntries instead |
boolean |
isTimingEnabled(java.lang.reflect.Method method)
Deprecated. Use ProfileEntries instead |
ConstructorProfileEntry |
newConstructorProfileEntry(java.lang.reflect.Constructor constructor)
|
ExceptionProfileEntry |
newExceptionProfileEntry(java.lang.Class throwAbleClass)
|
MethodProfileEntry |
newMethodProfileEntry(java.lang.reflect.Method method)
|
void |
setExceptionCountEnabled(java.lang.Class throwableClass,
boolean enable,
boolean includeAllSubclasses)
Deprecated. Use ProfileEntries instead |
void |
setInvocationCountEnabled(java.lang.reflect.Constructor constructor,
boolean enable)
Deprecated. Use ProfileEntries instead |
void |
setInvocationCountEnabled(java.lang.reflect.Method method,
boolean enable)
Deprecated. Use ProfileEntries instead |
void |
setTimingEnabled(java.lang.reflect.Constructor constructor,
boolean enable)
Deprecated. Use ProfileEntries instead |
void |
setTimingEnabled(java.lang.reflect.Method method,
boolean enable)
Deprecated. Use ProfileEntries instead |
Methods inherited from interface com.bea.jvm.JVMComponent |
---|
getJVM |
Methods inherited from interface com.bea.jvm.Describable |
---|
getDescription |
Method Detail |
---|
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.void setInvocationCountEnabled(java.lang.reflect.Constructor constructor, boolean enable) throws NotAvailableException, UnapplicableMethodException
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.
UnapplicableMethodException
boolean isInvocationCountEnabled(java.lang.reflect.Method method)
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.boolean isInvocationCountEnabled(java.lang.reflect.Constructor constructor)
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.long getInvocationCount(java.lang.reflect.Method method)
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.long getInvocationCount(java.lang.reflect.Constructor constructor)
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.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.void setTimingEnabled(java.lang.reflect.Constructor constructor, boolean enable) throws NotAvailableException, UnapplicableMethodException
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.
UnapplicableMethodException
boolean isTimingEnabled(java.lang.reflect.Method method)
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.boolean isTimingEnabled(java.lang.reflect.Constructor constructor)
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.long getTiming(java.lang.reflect.Method method) throws NotAvailableException
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.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.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.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.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 ThrowableMethodProfileEntry newMethodProfileEntry(java.lang.reflect.Method method) throws NotAvailableException, UnapplicableMethodException
NotAvailableException
- If the implementation does not support method profiling
UnapplicableMethodException
- If this is a native or abstract MethodConstructorProfileEntry newConstructorProfileEntry(java.lang.reflect.Constructor constructor) throws NotAvailableException
NotAvailableException
- If the implementation does not support method profilingExceptionProfileEntry newExceptionProfileEntry(java.lang.Class throwAbleClass) throws NotAvailableException, java.lang.IllegalArgumentException
NotAvailableException
- If the implementation does not support exception profiling
java.lang.IllegalArgumentException
- If the class is not a java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |