Interface MemoryUtil.MemoryAllocationReport

  • Enclosing class:
    MemoryUtil


    public static interface MemoryUtil.MemoryAllocationReport
    The memory allocation report callback.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void invoke(long memory, long threadId, java.lang.String threadName, java.lang.StackTraceElement... stacktrace)
      Reports allocated memory.
    • Method Detail

      • invoke

        void invoke(long memory,
                    long threadId,
                    java.lang.String threadName,
                    java.lang.StackTraceElement... stacktrace)
        Reports allocated memory.
        Parameters:
        memory - the amount of memory allocated, in bytes
        threadId - id of the thread that allocated the memory. May be MemoryUtil.NULL.
        threadName - name of the thread that allocated the memory. May be null.
        stacktrace - the allocation stacktrace. May be null.