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
          Use to check if allocation recording is on
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

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.

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()

ALLOCATION_RECORDING

public static final long ALLOCATION_RECORDING
Use to check if allocation recording is on

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-2010 YourKit, LLC. All Rights Reserved.