com.bea.jvm
Interface RunnableMemberProfileEntry

All Known Subinterfaces:
ConstructorProfileEntry, MethodProfileEntry

public interface RunnableMemberProfileEntry

A profiling proxy to handle invocation and timing profiling of runnable member types (i.e Methods or Constructors). Note that an implementation may choose to share the counter objects for profiling between clients, and thus the global state of profiling and the data being collected may not be truly represented by this object. Enabling or disabling any profiling through this interface will only guarantee that at least the requested amount of profiling data is collected.

Author:
calle

Method Summary
 long getInvocations()
           
 java.lang.reflect.AccessibleObject getProfiled()
           
 RunnableMemberProfileEntry getResetableInstance()
           
 long getTiming()
           
 boolean isInvocationCountEnabled()
           
 boolean isTimingEnabled()
           
 void setEnabled(boolean invocations, boolean timing)
          sets the minimum state of profiling required
 void setInvocationCountEnabled(boolean on)
          sets the minimum state of profiling required
 void setTimingEnabled(boolean on)
          sets the minimum state of profiling required
 

Method Detail

getProfiled

java.lang.reflect.AccessibleObject getProfiled()
Returns:
the member being profiled

isInvocationCountEnabled

boolean isInvocationCountEnabled()
Returns:
if invocation count profiling is enabled for the member

isTimingEnabled

boolean isTimingEnabled()
Returns:
if execution timing profiling is enabled for the member

setEnabled

void setEnabled(boolean invocations,
                boolean timing)
                throws NotAvailableException
sets the minimum state of profiling required

Throws:
NotAvailableException

setInvocationCountEnabled

void setInvocationCountEnabled(boolean on)
                               throws NotAvailableException
sets the minimum state of profiling required

Throws:
NotAvailableException

setTimingEnabled

void setTimingEnabled(boolean on)
                      throws NotAvailableException
sets the minimum state of profiling required

Throws:
NotAvailableException

getInvocations

long getInvocations()
Returns:
the number of invocation collected since a time less or equal to when first enabled by any client

getTiming

long getTiming()
Returns:
the time spent executing the member since a time less or equal to when first enabled by any client

getResetableInstance

RunnableMemberProfileEntry getResetableInstance()
Returns:
A wrapper object to handle pausable and resetable profiling


Copyright © 1999, 2008, Oracle and/or its affiliates. All rights reserved.