Class KernelAllocationTracker
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.mem.KernelAllocationTracker
-
- All Implemented Interfaces:
java.util.function.Supplier<java.lang.String>
,AllocationTracker
public final class KernelAllocationTracker extends java.lang.Object implements AllocationTracker
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long bytes)
Add the given number of bytes to the total tracked amount.static AllocationTracker
create(org.neo4j.graphalgo.compat.AllocationTrackerAdapter 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.graphalgo.core.utils.mem.AllocationTracker
get, getUsageString, getUsageString
-
-
-
-
Method Detail
-
add
public void add(long bytes)
Description copied from interface:AllocationTracker
Add the given number of bytes to the total tracked amount.- Specified by:
add
in interfaceAllocationTracker
-
remove
public void remove(long bytes)
Description copied from interface:AllocationTracker
Remove the given number of bytes from the total tracked amount.- Specified by:
remove
in interfaceAllocationTracker
-
trackedBytes
public long trackedBytes()
Description copied from interface:AllocationTracker
Return the current total of tracked bytes.- Specified by:
trackedBytes
in interfaceAllocationTracker
-
create
public static AllocationTracker create(org.neo4j.graphalgo.compat.AllocationTrackerAdapter tracker)
-
-