Package org.lwjgl.system
Interface MemoryUtil.MemoryAllocationReport
- Enclosing class:
MemoryUtil
public static interface MemoryUtil.MemoryAllocationReport
The memory allocation report callback.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Specifies how to aggregate the reported allocations. -
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(long address, long memory, long threadId, @Nullable String threadName, StackTraceElement @Nullable ... stacktrace) Reports allocated memory.
-
Method Details
-
invoke
void invoke(long address, long memory, long threadId, @Nullable String threadName, StackTraceElement @Nullable ... stacktrace) Reports allocated memory.- Parameters:
address
- the address of the memory allocated. May beMemoryUtil.NULL
.memory
- the amount of memory allocated, in bytesthreadId
- id of the thread that allocated the memory. May beMemoryUtil.NULL
.threadName
- name of the thread that allocated the memory. May benull
.stacktrace
- the allocation stacktrace. May benull
.
-