mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Track memory allocations in test application.
This commit is contained in:
parent
09304390dd
commit
6c9add0f30
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user