Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
TracyMemory.cpp
Go to the documentation of this file.
1#ifdef ENABLE_TRACY
2#include "tracy/Tracy.hpp"
3#endif
4#include <cstddef>
5#include <cstdlib>
6
7void* operator new(std::size_t count)
8{
9 auto ptr = malloc(count);
10#ifdef ENABLE_TRACY
11 TracyAlloc(ptr, count);
12#endif
13 return ptr;
14}
15
16void operator delete(void* ptr)
17{
18#ifdef ENABLE_TRACY
19 TracyFree(ptr);
20#endif
21 free(ptr);
22}