EntropyEngine::Core::EntropyObjectMemoryHooks
EntropyEngine::Core::EntropyObjectMemoryHooks
Section titled “EntropyEngine::Core::EntropyObjectMemoryHooks”Memory profiling callbacks for EntropyObject lifecycle tracking. More…
#include <EntropyObject.h>
Public Types
Section titled “Public Types”| Name | |
|---|---|
| using void(*)(void *ptr, const char *className) | FreeCallback |
| using void(*)(void *ptr, size_t size, const char *className) | AllocCallback |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| FreeCallback | onFree |
| AllocCallback | onAlloc |
Detailed Description
Section titled “Detailed Description”struct EntropyEngine::Core::EntropyObjectMemoryHooks;Memory profiling callbacks for EntropyObject lifecycle tracking.
These callbacks allow external profilers (e.g., Tracy) to track EntropyObject allocations without adding profiler dependencies to EntropyCore.
// Example: Register Tracy callbacks in EntropyPortalEntropyObjectMemoryHooks::onAlloc = [](void* ptr, size_t size, const char* name) { TracyAllocN(ptr, size, name);};EntropyObjectMemoryHooks::onFree = [](void* ptr, const char* name) { TracyFreeN(ptr, name);};Public Types Documentation
Section titled “Public Types Documentation”using FreeCallback
Section titled “using FreeCallback”using EntropyEngine::Core::EntropyObjectMemoryHooks::FreeCallback = void (*)(void* ptr, const char* className);using AllocCallback
Section titled “using AllocCallback”using EntropyEngine::Core::EntropyObjectMemoryHooks::AllocCallback = void (*)(void* ptr, size_t size, const char* className);Public Attributes Documentation
Section titled “Public Attributes Documentation”variable onFree
Section titled “variable onFree”static FreeCallback onFree = nullptr;variable onAlloc
Section titled “variable onAlloc”static AllocCallback onAlloc = nullptr;Updated on 2026-01-26 at 17:14:35 -0500