sk.baka.webvm.analyzer
Class HistorySample

java.lang.Object
  extended by sk.baka.webvm.analyzer.HistorySample

public final class HistorySample
extends Object

Holds history data for a single time unit.

Author:
Martin Vysny

Field Summary
 int classesLoaded
          Count of classes currently loaded in the VM.
 int cpuIOUsage
          Shows the host OS CPU IO usage.
 int cpuJavaUsage
          Shows the owner java process CPU usage.
 int cpuUsage
          Shows the host OS CPU usage.
 int daemonThreadCount
          Current count of daemon threads.
 int gcCpuUsage
          Returns GC CPU Usage.
 MemoryUsage[] memPoolUsage
          The memory usage list, indexed according to the value of the POOL_* constants.
static int POOL_HEAP
          The heap usage.
static int POOL_NON_HEAP
          The non-heap usage, may be null.
static int POOL_PHYS_MEM
          The host OS physical memory, may be null.
static int POOL_SWAP
          The swap, may be null.
 long sampleTime
          The time this sample was taken.
 int threadCount
          Returns current count of all threads.
 ThreadInfo[] threads
          A thread dump.
 
Constructor Summary
HistorySample(int gcCpuUsage, int cpuOSUsage, int cpuJavaUsage, int cpuIOUsage)
          Creates new history sample bean.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gcCpuUsage

public final int gcCpuUsage
Returns GC CPU Usage.


sampleTime

public final long sampleTime
The time this sample was taken.


POOL_HEAP

public static final int POOL_HEAP
The heap usage.

See Also:
Constant Field Values

POOL_NON_HEAP

public static final int POOL_NON_HEAP
The non-heap usage, may be null.

See Also:
Constant Field Values

POOL_PHYS_MEM

public static final int POOL_PHYS_MEM
The host OS physical memory, may be null.

See Also:
Constant Field Values

POOL_SWAP

public static final int POOL_SWAP
The swap, may be null.

See Also:
Constant Field Values

memPoolUsage

public final MemoryUsage[] memPoolUsage
The memory usage list, indexed according to the value of the POOL_* constants.


threads

public final ThreadInfo[] threads
A thread dump. Does not contain any stacktraces. Never null.


classesLoaded

public final int classesLoaded
Count of classes currently loaded in the VM.


daemonThreadCount

public final int daemonThreadCount
Current count of daemon threads.


threadCount

public final int threadCount
Returns current count of all threads.


cpuUsage

public final int cpuUsage
Shows the host OS CPU usage. A value of 0..100, 0 when not supported.


cpuJavaUsage

public final int cpuJavaUsage
Shows the owner java process CPU usage. A value of 0..100, 0 when not supported.


cpuIOUsage

public final int cpuIOUsage
Shows the host OS CPU IO usage. A value of 0..100, 0 when not supported.

Constructor Detail

HistorySample

public HistorySample(int gcCpuUsage,
                     int cpuOSUsage,
                     int cpuJavaUsage,
                     int cpuIOUsage)
Creates new history sample bean.

Parameters:
gcCpuUsage - average CPU usage of GC for this time slice in percent.
cpuOSUsage - Shows the host OS CPU usage. A value of 0..100, 0 when not supported.
cpuJavaUsage - Shows the owner java process CPU usage. A value of 0..100, 0 when not supported.
cpuIOUsage - Shows the host OS CPU IO usage. A value of 0..100, 0 when not supported.


Copyright © 2010 Baka. All Rights Reserved.