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 Detail

      • isTracking

        static boolean isTracking​(@Nullable
                                  @Nullable AllocationTracker allocationTracker)
      • create

        static AllocationTracker create​(org.neo4j.gds.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 interface java.util.function.Supplier<java.lang.String>