public final class ProfSnapshot extends Object
Prof
contain statistics of running
ProgressObserver
instances.Modifier and Type | Class and Description |
---|---|
static class |
ProfSnapshot.GarbageCollector
Represents a garbage collector.
|
static class |
ProfSnapshot.MemoryPool
Represents a memory pool.
|
static class |
ProfSnapshot.MemoryUsageDesc
Represents memory usage.
|
Modifier and Type | Field and Description |
---|---|
List<ProfSnapshot.GarbageCollector> |
garbageCollectors
Representation of garbage collector states.
|
ProfSnapshot.MemoryUsageDesc |
heapMemoryUsage
Heap memory usage.
|
long |
heapMemoryUsed
Used heap memory.
|
boolean |
important
Important flag.
|
List<ProfSnapshot.MemoryPool> |
memoryPools
Representation of the states of the memory pools.
|
ProfSnapshot.MemoryUsageDesc |
nonHeapMemoryUsage
Non-heap memory usage.
|
long |
nonHeapMemoryUsed
Used non-heap memory.
|
int |
objectPendingFinalizationCount
Approximate number of objects pending finalization.
|
double |
systemLoadAverage
System load average.
|
long |
timestamp
System time snapshot.
|
long |
totalCollectionCount
Sum of collection counts.
|
long |
totalCollectionTime
Sum of collection times.
|
long |
totalCompilationTime
Total compilation time.
|
Constructor and Description |
---|
ProfSnapshot()
Construct snapshot.
|
ProfSnapshot(boolean important)
Construct snapshot.
|
public long timestamp
System.currentTimeMillis()
public long heapMemoryUsed
MemoryUsage.getUsed()
of MemoryMXBean.getHeapMemoryUsage()
of
ManagementFactory.getMemoryMXBean()
.public ProfSnapshot.MemoryUsageDesc heapMemoryUsage
MemoryMXBean.getHeapMemoryUsage()
of ManagementFactory.getMemoryMXBean()
.public long nonHeapMemoryUsed
MemoryUsage.getUsed()
of MemoryMXBean.getNonHeapMemoryUsage()
of
ManagementFactory.getMemoryMXBean()
.public ProfSnapshot.MemoryUsageDesc nonHeapMemoryUsage
MemoryMXBean.getNonHeapMemoryUsage()
of ManagementFactory.getMemoryMXBean()
.public int objectPendingFinalizationCount
MemoryMXBean.getObjectPendingFinalizationCount()
of
ManagementFactory.getMemoryMXBean()
.public List<ProfSnapshot.GarbageCollector> garbageCollectors
ManagementFactory.getGarbageCollectorMXBeans()
.public long totalCollectionCount
GarbageCollectorMXBean.getCollectionCount()
of all garbage collectors (returned by
ManagementFactory.getGarbageCollectorMXBeans()
) which support this attribute.public long totalCollectionTime
GarbageCollectorMXBean.getCollectionTime()
of all garbage collectors (returned by
ManagementFactory.getGarbageCollectorMXBeans()
) which support this attribute.public long totalCompilationTime
CompilationMXBean.getTotalCompilationTime()
when it is supported.public List<ProfSnapshot.MemoryPool> memoryPools
ManagementFactory.getMemoryPoolMXBeans()
.public double systemLoadAverage
OperatingSystemMXBean.getSystemLoadAverage()
.public boolean important