From 3051b8d27c1e5dad387dbe7b758d5336b461d92a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 2 Nov 2017 12:57:02 +0100 Subject: [PATCH] Don't use rpmalloc directly. --- common/TracySystem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/TracySystem.cpp b/common/TracySystem.cpp index a64198c8..3a65c78b 100644 --- a/common/TracySystem.cpp +++ b/common/TracySystem.cpp @@ -13,7 +13,7 @@ #ifdef TRACY_COLLECT_THREAD_NAMES # include -# include "../client/tracy_rpmalloc.hpp" +# include "TracyAlloc.hpp" #endif namespace tracy @@ -85,10 +85,10 @@ void SetThreadName( std::thread::native_handle_type handle, const char* name ) #ifdef TRACY_COLLECT_THREAD_NAMES { const auto sz = strlen( name ); - char* buf = (char*)rpmalloc( sz+1 ); + char* buf = (char*)tracy_malloc( sz+1 ); memcpy( buf, name, sz ); buf[sz+1] = '\0'; - auto data = (ThreadNameData*)rpmalloc( sizeof( ThreadNameData ) ); + auto data = (ThreadNameData*)tracy_malloc( sizeof( ThreadNameData ) ); # ifdef _WIN32 data->id = GetThreadId( static_cast( handle ) ); # else