Class 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.gds.compat.AllocationTrackerAdapter allocationTrackerAdapter)  
      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
    • 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 interface AllocationTracker
      • 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 interface AllocationTracker
      • create

        public static AllocationTracker create​(org.neo4j.gds.compat.AllocationTrackerAdapter allocationTrackerAdapter)