Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
memory.h File Reference
#include <cstddef>
#include <functional>
Include dependency graph for memory.h:

Go to the source code of this file.

Functions

void tracy_dump_leaks ()
 Memory management utilities and custom new/delete operators. This header provides functions for initializing and shutting down memory tracking, as well as custom global new and delete operators that integrate with the Tracy profiler for memory leak detection.
 
void tracy_memory_init ()
 
void tracy_memory_shutdown ()
 
void run_without_tracy (std::function< void()> func)
 
void * operator new (std::size_t size)
 
void operator delete (void *ptr) noexcept
 
void * operator new[] (std::size_t size)
 
void operator delete[] (void *ptr) noexcept
 

Function Documentation

◆ operator delete()

void operator delete ( void *  ptr)
noexcept

◆ operator delete[]()

void operator delete[] ( void *  ptr)
noexcept

◆ operator new()

void * operator new ( std::size_t  size)

◆ operator new[]()

void * operator new[] ( std::size_t  size)

◆ run_without_tracy()

void run_without_tracy ( std::function< void()>  func)

◆ tracy_dump_leaks()

void tracy_dump_leaks ( )

Memory management utilities and custom new/delete operators. This header provides functions for initializing and shutting down memory tracking, as well as custom global new and delete operators that integrate with the Tracy profiler for memory leak detection.

Warning
These overrides are meant to be used with the Tracy profiler. If Tracy is not being used, the run_without_tracy function allows executing code without Tracy's memory tracking.
This should not be used in release builds where performance is critical, as the custom new/delete operators may introduce overhead.

◆ tracy_memory_init()

void tracy_memory_init ( )

◆ tracy_memory_shutdown()

void tracy_memory_shutdown ( )