| java.lang.Object org.netbeans.lib.profiler.server.ProfilerRuntime org.netbeans.lib.profiler.server.ProfilerRuntimeMemory
All known Subclasses: org.netbeans.lib.profiler.server.ProfilerRuntimeObjAlloc, org.netbeans.lib.profiler.server.ProfilerRuntimeObjLiveness,
ProfilerRuntimeMemory | public class ProfilerRuntimeMemory extends ProfilerRuntime (Code) | | This class contains methods and data structures that are common for both modes of memory profiling - object
allocation and object liveness.
author: Tomas Hurka author: Misha Dmitriev |
Method Summary | |
protected static void | clearDataStructures() | protected static void | createNewDataStructures() | protected static void | enableProfiling(boolean v) | protected static synchronized void | getAndSendCurrentStackTrace(char classId, long objSize) | protected static synchronized void | getAndSendCurrentStackTrace(char classId, char epoch, int objCount, long objSize) | protected static long | getCachedObjectSize(char classId, Object object) | protected static void | initRandomGenerator() | protected static short | nextRandomizedInterval() | public static void | resetProfilerCollectors(int instrType) Memory profiling-specific reset collectors functionality. | public static void | setAllocatedInstancesCountArray(int[] aic) | public static void | setSamplingDepth(int val) Negative parameter means the depth is not limited. | public static void | setSamplingInterval(short val) | public static void | traceVMObjectAlloc(Object instance, Class clazz) | protected static void | writeObjAllocStackTraceEvent(char classId, long objSize) | protected static void | writeObjGCEvent(long objectId) | protected static void | writeObjLivenessStackTraceEvent(char classId, char epoch, int objCount, long objSize) |
MAX_STACK_FRAMES | final protected static int MAX_STACK_FRAMES(Code) | | |
NO_OF_PROFILER_FRAMES | final protected static int NO_OF_PROFILER_FRAMES(Code) | | |
allocatedInstArrayLength | protected static int allocatedInstArrayLength(Code) | | |
allocatedInstThreshold | protected static short[] allocatedInstThreshold(Code) | | |
allocatedInstancesCount | protected static int[] allocatedInstancesCount(Code) | | |
objectSize | protected static char[] objectSize(Code) | | |
samplingDepth | protected static int samplingDepth(Code) | | |
samplingInterval | protected static short samplingInterval(Code) | | |
clearDataStructures | protected static void clearDataStructures()(Code) | | |
createNewDataStructures | protected static void createNewDataStructures()(Code) | | |
enableProfiling | protected static void enableProfiling(boolean v)(Code) | | |
getAndSendCurrentStackTrace | protected static synchronized void getAndSendCurrentStackTrace(char classId, long objSize)(Code) | | This is used in Object Allocation profiling mode
|
getAndSendCurrentStackTrace | protected static synchronized void getAndSendCurrentStackTrace(char classId, char epoch, int objCount, long objSize)(Code) | | This is used in Object Liveness profiling mode
|
getCachedObjectSize | protected static long getCachedObjectSize(char classId, Object object)(Code) | | |
initRandomGenerator | protected static void initRandomGenerator()(Code) | | |
nextRandomizedInterval | protected static short nextRandomizedInterval()(Code) | | |
resetProfilerCollectors | public static void resetProfilerCollectors(int instrType)(Code) | | Memory profiling-specific reset collectors functionality.
|
setAllocatedInstancesCountArray | public static void setAllocatedInstancesCountArray(int[] aic)(Code) | | |
setSamplingDepth | public static void setSamplingDepth(int val)(Code) | | Negative parameter means the depth is not limited. val == 0 means we should not take stack samples
|
setSamplingInterval | public static void setSamplingInterval(short val)(Code) | | |
traceVMObjectAlloc | public static void traceVMObjectAlloc(Object instance, Class clazz)(Code) | | |
writeObjAllocStackTraceEvent | protected static void writeObjAllocStackTraceEvent(char classId, long objSize)(Code) | | Note that there is no synchronized(eventBuffer) in this method, since synchronization is already required by its callers
|
writeObjGCEvent | protected static void writeObjGCEvent(long objectId)(Code) | | |
writeObjLivenessStackTraceEvent | protected static void writeObjLivenessStackTraceEvent(char classId, char epoch, int objCount, long objSize)(Code) | | Note that there is no synchronized(eventBuffer) in this method, since synchronization is already required by its callers
|
|
|