Interface AllocationTracker
-
- All Superinterfaces:
java.util.function.Supplier<java.lang.String>
- All Known Implementing Classes:
InMemoryAllocationTracker
,KernelAllocationTracker
public interface AllocationTracker extends java.util.function.Supplier<java.lang.String>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
add(long bytes)
Add the given number of bytes to the total tracked amount.static AllocationTracker
create()
static AllocationTracker
create(org.neo4j.graphalgo.compat.MemoryTrackerProxy kernelProxy)
static AllocationTracker
empty()
default java.lang.String
get()
default java.lang.String
getUsageString()
default java.lang.String
getUsageString(java.lang.String label)
static boolean
isTracking(@Nullable AllocationTracker tracker)
void
remove(long bytes)
Remove the given number of bytes from the total tracked amount.long
trackedBytes()
Return the current total of tracked bytes.
-
-
-
Method Detail
-
empty
static AllocationTracker empty()
-
isTracking
static boolean isTracking(@Nullable @Nullable AllocationTracker tracker)
-
create
static AllocationTracker create()
-
create
static AllocationTracker create(org.neo4j.graphalgo.compat.MemoryTrackerProxy kernelProxy)
-
add
void add(long bytes)
Add the given number of bytes to the total tracked amount.
-
remove
void remove(long bytes)
Remove the given number of bytes from the total tracked amount.
-
trackedBytes
long trackedBytes()
Return the current total of tracked bytes.
-
getUsageString
default java.lang.String getUsageString()
-
getUsageString
default java.lang.String getUsageString(java.lang.String label)
-
get
default java.lang.String get()
- Specified by:
get
in interfacejava.util.function.Supplier<java.lang.String>
-
-