com.yourkit.api
Class ProfilingModes

java.lang.Object
  extended by com.yourkit.api.ProfilingModes

public class ProfilingModes
extends java.lang.Object

Defines constants to be passed to methods of Controller.


Field Summary
static long ALLOCATION_RECORDING_ADAPTIVE
          Adaptively skip tracking of some object allocations, keeping overhead at some moderative level.
static long ALLOCATION_RECORDING_ALL
          Record each object allocation.
static long CPU_J2EE
          Profile J2EE.
static long CPU_SAMPLING
          Records CPU times only.
static long CPU_TRACING
          Records CPU times and method invocation counts.
static long MONITOR_PROFILING
          Use to check if monitor profiling is running
static long SNAPSHOT_HPROF
          Pass as parameter of Controller.captureSnapshot(long) to capture snapshot in HPROF format (it will including the heap dump only).
static long SNAPSHOT_WITH_HEAP
          Pass as parameter of Controller.captureSnapshot(long) to capture snapshot with all the recorded information, including the heap dump.
static long SNAPSHOT_WITHOUT_HEAP
          Pass as parameter of Controller.captureSnapshot(long) to capture snapshot with all the recorded information, but without the heap dump.
 
Constructor Summary
ProfilingModes()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALLOCATION_RECORDING_ALL

public static final long ALLOCATION_RECORDING_ALL
Record each object allocation. May add significant overhead; in most cases, ALLOCATION_RECORDING_ADAPTIVE is a better choice.

See Also:
Controller.startAllocationRecording(long)

ALLOCATION_RECORDING_ADAPTIVE

public static final long ALLOCATION_RECORDING_ADAPTIVE
Adaptively skip tracking of some object allocations, keeping overhead at some moderative level. Best choice for excessive garbage allocation profiling.

See Also:
Controller.startAllocationRecording(long)

CPU_SAMPLING

public static final long CPU_SAMPLING
Records CPU times only. This CPU profiling method has smallest overhead.


CPU_TRACING

public static final long CPU_TRACING
Records CPU times and method invocation counts. Overhead in general is bigger than of CPU_SAMPLING and depends on applied filters. Supported only if profiled application runs with Java 5 or newer.

See Also:
Controller.startCPUProfiling(long, String)

MONITOR_PROFILING

public static final long MONITOR_PROFILING
Use to check if monitor profiling is running

See Also:
Controller.getStatus()

CPU_J2EE

public static final long CPU_J2EE
Profile J2EE. Use in combination with other CPU profiling modes:
CPU_SAMPLING | CPU_J2EE or
CPU_TRACING | CPU_J2EE

See Also:
Controller.startCPUProfiling(long, String)

SNAPSHOT_WITHOUT_HEAP

public static final long SNAPSHOT_WITHOUT_HEAP
Pass as parameter of Controller.captureSnapshot(long) to capture snapshot with all the recorded information, but without the heap dump.

See Also:
Constant Field Values

SNAPSHOT_WITH_HEAP

public static final long SNAPSHOT_WITH_HEAP
Pass as parameter of Controller.captureSnapshot(long) to capture snapshot with all the recorded information, including the heap dump.


SNAPSHOT_HPROF

public static final long SNAPSHOT_HPROF
Pass as parameter of Controller.captureSnapshot(long) to capture snapshot in HPROF format (it will including the heap dump only).

Constructor Detail

ProfilingModes

public ProfilingModes()


Copyright © 2003-2007 YourKit, LLC. All Rights Reserved.