mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Overload operator new and delete in test.
This commit is contained in:
parent
cef972fe25
commit
09304390dd
@ -2,9 +2,20 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <shared_mutex>
|
#include <shared_mutex>
|
||||||
|
#include <stdlib.h>
|
||||||
#include "../Tracy.hpp"
|
#include "../Tracy.hpp"
|
||||||
#include "../common/TracySystem.hpp"
|
#include "../common/TracySystem.hpp"
|
||||||
|
|
||||||
|
void* operator new( std::size_t count )
|
||||||
|
{
|
||||||
|
return malloc( count );
|
||||||
|
}
|
||||||
|
|
||||||
|
void operator delete( void* ptr ) noexcept
|
||||||
|
{
|
||||||
|
free( ptr );
|
||||||
|
}
|
||||||
|
|
||||||
void TestFunction()
|
void TestFunction()
|
||||||
{
|
{
|
||||||
for(;;)
|
for(;;)
|
||||||
|
Loading…
Reference in New Issue
Block a user