1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use rpmalloc to allocate tracy client memory.

This commit is contained in:
Bartosz Taudul
2017-10-14 17:15:18 +02:00
parent e8968efea7
commit c497966c7f
3 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
#include <string.h>
#include "../common/TracySystem.hpp"
#include "TracyAlloc.hpp"
#include "TracyProfiler.hpp"
namespace tracy
@@ -43,7 +44,7 @@ public:
tracy_force_inline void Text( const char* txt, size_t size )
{
Magic magic;
auto ptr = new char[size+1];
auto ptr = (char*)tracy_malloc( size+1 );
memcpy( ptr, txt, size );
ptr[size] = '\0';
auto& token = s_token.ptr;