update compiler flags, fix tracy allocation profiling, fix compiler warnings

This commit is contained in:
2026-02-23 22:25:34 +01:00
parent 59a4303d62
commit 404a76654c
19 changed files with 236 additions and 162 deletions

17
src/tracy.cpp Normal file
View File

@ -0,0 +1,17 @@
#include "tracy.hpp"
#include <tracy/Tracy.hpp>
void *operator new(std::size_t count) {
auto ptr = malloc(count);
TracyAlloc(ptr, count);
return ptr;
}
void operator delete(void *ptr) noexcept {
TracyFree(ptr);
free(ptr);
}
void operator delete(void *ptr, std::size_t count) noexcept {
TracyFree(ptr);
free(ptr);
}