update compiler flags, fix tracy allocation profiling, fix compiler warnings
This commit is contained in:
17
src/tracy.cpp
Normal file
17
src/tracy.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user