public static final class NativeAllocationTracer.Site extends Object
| Modifier and Type | Field and Description |
|---|---|
private AtomicLong |
collectedBytes
Bytes of memory that have been garbage collected (non-manually deallocated)
|
private AtomicLong |
collectedCounts
Number of allocations that have been garbage collected (non-manually deallocated)
|
private AtomicLong |
liveBytes
Current bytes of live memory
|
private AtomicLong |
liveCounts
Current number of live allocations
|
private NativeAllocationTracer.Location |
location
Source code location where allocations occur
|
private Class<? extends Pointer> |
pointerType
Type of pointer objects allocated at this location
|
private AtomicLong |
totalBytes
Total bytes allocated at this location
|
private AtomicLong |
totalCounts
Total number of allocated at this location
|
| Constructor and Description |
|---|
Site(NativeAllocationTracer.Location location,
Class<? extends Pointer> pointerType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
long |
getCollectedBytes() |
long |
getCollectedCounts() |
long |
getLiveBytes() |
long |
getLiveCounts() |
NativeAllocationTracer.Location |
getLocation() |
Class<? extends Pointer> |
getPointerType() |
long |
getTotalBytes() |
long |
getTotalCounts() |
int |
hashCode() |
String |
toString() |
private final NativeAllocationTracer.Location location
private final Class<? extends Pointer> pointerType
private final AtomicLong totalCounts
private final AtomicLong totalBytes
private final AtomicLong liveCounts
private final AtomicLong liveBytes
private final AtomicLong collectedCounts
private final AtomicLong collectedBytes
Site(NativeAllocationTracer.Location location, Class<? extends Pointer> pointerType)
public NativeAllocationTracer.Location getLocation()
Location location where allocations occurpublic Class<? extends Pointer> getPointerType()
public long getTotalCounts()
public long getTotalBytes()
public long getLiveCounts()
public long getLiveBytes()
public long getCollectedCounts()
public long getCollectedBytes()
Copyright © 2026. All rights reserved.