public class AllocationsTracker extends Object
Modifier | Constructor and Description |
---|---|
protected |
AllocationsTracker() |
Modifier and Type | Method and Description |
---|---|
long |
bytesOnDevice(AllocationKind kind,
Integer deviceId) |
long |
bytesOnDevice(Integer deviceId) |
static AllocationsTracker |
getInstance() |
void |
markAllocated(AllocationKind kind,
Integer deviceId,
long bytes) |
void |
markReleased(AllocationKind kind,
Integer deviceId,
long bytes) |
protected DeviceAllocationsTracker |
trackerForDevice(Integer deviceId) |
public static AllocationsTracker getInstance()
protected DeviceAllocationsTracker trackerForDevice(Integer deviceId)
public void markAllocated(AllocationKind kind, Integer deviceId, long bytes)
public void markReleased(AllocationKind kind, Integer deviceId, long bytes)
public long bytesOnDevice(Integer deviceId)
public long bytesOnDevice(AllocationKind kind, Integer deviceId)
Copyright © 2020. All rights reserved.