Track memory allocations in test application.

This commit is contained in:
Bartosz Taudul 2018-06-20 19:48:14 +02:00
parent 09304390dd
commit 6c9add0f30

View File

@ -8,11 +8,14 @@
void* operator new( std::size_t count )
{
return malloc( count );
auto ptr = malloc( count );
TracyAllocS( ptr, count, 10 );
return ptr;
}
void operator delete( void* ptr ) noexcept
{
TracyFreeS( ptr, 10 );
free( ptr );
}