From 6c9add0f304f7db6be45c96ae8c3b431145ce18f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 20 Jun 2018 19:48:14 +0200 Subject: [PATCH] Track memory allocations in test application. --- test/test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test.cpp b/test/test.cpp index 51f91413..fe6af1cc 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -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 ); }