![]() |
VR-Vantage 3.0 API Documentation
|
Go to the source code of this file.
Classes | |
| struct | tracy::rpmalloc_global_statistics_t |
| struct | tracy::rpmalloc_thread_statistics_t |
| struct | tracy::rpmalloc_config_t |
Namespaces | |
| namespace | tracy |
Macros | |
| #define | RPMALLOC_EXPORT |
| #define | RPMALLOC_ALLOCATOR |
| #define | RPMALLOC_ATTRIB_MALLOC |
| #define | RPMALLOC_ATTRIB_ALLOC_SIZE(size) |
| #define | RPMALLOC_ATTRIB_ALLOC_SIZE2(count, size) |
| #define | RPMALLOC_CDECL |
| #define | RPMALLOC_CONFIGURABLE 0 |
| Define RPMALLOC_CONFIGURABLE to enable configuring sizes. | |
| #define | RPMALLOC_NO_PRESERVE 1 |
| Flag to rpaligned_realloc to not preserve content in reallocation. | |
Typedefs | |
| typedef struct tracy::rpmalloc_global_statistics_t | tracy::rpmalloc_global_statistics_t |
| typedef struct tracy::rpmalloc_thread_statistics_t | tracy::rpmalloc_thread_statistics_t |
| typedef struct tracy::rpmalloc_config_t | tracy::rpmalloc_config_t |
Functions | |
| TRACY_API int | tracy::rpmalloc_initialize (void) |
| Initialize allocator with default configuration. | |
| RPMALLOC_EXPORT int | tracy::rpmalloc_initialize_config (const rpmalloc_config_t *config) |
| Initialize allocator with given configuration. | |
| RPMALLOC_EXPORT const rpmalloc_config_t * | tracy::rpmalloc_config (void) |
| Get allocator configuration. | |
| TRACY_API void | tracy::rpmalloc_finalize (void) |
| Finalize allocator. | |
| TRACY_API void | tracy::rpmalloc_thread_initialize (void) |
| Initialize allocator for calling thread. | |
| TRACY_API void | tracy::rpmalloc_thread_finalize (void) |
| Finalize allocator for calling thread. | |
| RPMALLOC_EXPORT void | tracy::rpmalloc_thread_collect (void) |
| Perform deferred deallocations pending for the calling thread heap. | |
| RPMALLOC_EXPORT int | tracy::rpmalloc_is_thread_initialized (void) |
| Query if allocator is initialized for calling thread. | |
| RPMALLOC_EXPORT void | tracy::rpmalloc_thread_statistics (rpmalloc_thread_statistics_t *stats) |
| Get per-thread statistics. | |
| RPMALLOC_EXPORT void | tracy::rpmalloc_global_statistics (rpmalloc_global_statistics_t *stats) |
| Get global statistics. | |
| RPMALLOC_EXPORT void | tracy::rpmalloc_dump_statistics (void *file) |
| Dump all statistics in human readable format to file (should be a FILE*) | |
| TRACY_API RPMALLOC_ALLOCATOR void * | tracy::rpmalloc (size_t size) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE(1) |
| Allocate a memory block of at least the given size. | |
| TRACY_API void | tracy::rpfree (void *ptr) |
| Free the given memory block. | |
| RPMALLOC_EXPORT RPMALLOC_ALLOCATOR void * | tracy::rpcalloc (size_t num, size_t size) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE2(1 |
| Allocate a memory block of at least the given size and zero initialize it. | |
| RPMALLOC_EXPORT RPMALLOC_ALLOCATOR void TRACY_API RPMALLOC_ALLOCATOR void * | tracy::rprealloc (void *ptr, size_t size) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE(2) |
| Reallocate the given block to at least the given size. | |
| RPMALLOC_EXPORT RPMALLOC_ALLOCATOR void * | tracy::rpaligned_realloc (void *ptr, size_t alignment, size_t size, size_t oldsize, unsigned int flags) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE(3) |
| Reallocate the given block to at least the given size and alignment,. | |
| RPMALLOC_EXPORT RPMALLOC_ALLOCATOR void * | tracy::rpaligned_alloc (size_t alignment, size_t size) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE(2) |
| Allocate a memory block of at least the given size and alignment. | |
| RPMALLOC_EXPORT RPMALLOC_ALLOCATOR void * | tracy::rpmemalign (size_t alignment, size_t size) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE(2) |
| Allocate a memory block of at least the given size and alignment. | |
| RPMALLOC_EXPORT int | tracy::rpposix_memalign (void **memptr, size_t alignment, size_t size) |
| Allocate a memory block of at least the given size and alignment. | |
| RPMALLOC_EXPORT size_t | tracy::rpmalloc_usable_size (void *ptr) |
| Query the usable size of the given memory block (from given pointer to the end of block) | |
| #define RPMALLOC_EXPORT |
| #define RPMALLOC_ALLOCATOR |
| #define RPMALLOC_ATTRIB_MALLOC |
| #define RPMALLOC_ATTRIB_ALLOC_SIZE | ( | size | ) |
| #define RPMALLOC_CDECL |
| #define RPMALLOC_CONFIGURABLE 0 |
Define RPMALLOC_CONFIGURABLE to enable configuring sizes.
| #define RPMALLOC_NO_PRESERVE 1 |
Flag to rpaligned_realloc to not preserve content in reallocation.