mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Replace rpmalloc_thread_initialize with InitRPMallocThread().
This commit is contained in:
parent
ab2fbd6164
commit
aa94df0845
@ -870,7 +870,7 @@ TRACY_API moodycamel::ConcurrentQueue<QueueItem>& GetQueue();
|
|||||||
|
|
||||||
struct RPMallocInit { RPMallocInit() { rpmalloc_initialize(); } };
|
struct RPMallocInit { RPMallocInit() { rpmalloc_initialize(); } };
|
||||||
|
|
||||||
void InitRPMallocThread()
|
TRACY_API void InitRPMallocThread()
|
||||||
{
|
{
|
||||||
rpmalloc_initialize();
|
rpmalloc_initialize();
|
||||||
rpmalloc_thread_initialize();
|
rpmalloc_thread_initialize();
|
||||||
@ -948,7 +948,7 @@ TRACY_API LuaZoneState& GetLuaZoneState() { return GetProfilerThreadData().luaZo
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
void InitRPMallocThread()
|
TRACY_API void InitRPMallocThread()
|
||||||
{
|
{
|
||||||
rpmalloc_thread_initialize();
|
rpmalloc_thread_initialize();
|
||||||
}
|
}
|
||||||
|
@ -57,8 +57,7 @@ TRACY_API std::atomic<uint32_t>& GetLockCounter();
|
|||||||
TRACY_API std::atomic<uint8_t>& GetGpuCtxCounter();
|
TRACY_API std::atomic<uint8_t>& GetGpuCtxCounter();
|
||||||
TRACY_API GpuCtxWrapper& GetGpuCtx();
|
TRACY_API GpuCtxWrapper& GetGpuCtx();
|
||||||
TRACY_API uint64_t GetThreadHandle();
|
TRACY_API uint64_t GetThreadHandle();
|
||||||
|
TRACY_API void InitRPMallocThread();
|
||||||
void InitRPMallocThread();
|
|
||||||
|
|
||||||
struct SourceLocationData
|
struct SourceLocationData
|
||||||
{
|
{
|
||||||
@ -376,7 +375,7 @@ public:
|
|||||||
# endif
|
# endif
|
||||||
const auto thread = GetThreadHandle();
|
const auto thread = GetThreadHandle();
|
||||||
|
|
||||||
rpmalloc_thread_initialize();
|
InitRPMallocThread();
|
||||||
auto callstack = Callstack( depth );
|
auto callstack = Callstack( depth );
|
||||||
|
|
||||||
profiler.m_serialLock.lock();
|
profiler.m_serialLock.lock();
|
||||||
@ -397,7 +396,7 @@ public:
|
|||||||
# endif
|
# endif
|
||||||
const auto thread = GetThreadHandle();
|
const auto thread = GetThreadHandle();
|
||||||
|
|
||||||
rpmalloc_thread_initialize();
|
InitRPMallocThread();
|
||||||
auto callstack = Callstack( depth );
|
auto callstack = Callstack( depth );
|
||||||
|
|
||||||
profiler.m_serialLock.lock();
|
profiler.m_serialLock.lock();
|
||||||
|
@ -49,7 +49,7 @@ struct ThreadNameData
|
|||||||
ThreadNameData* next;
|
ThreadNameData* next;
|
||||||
};
|
};
|
||||||
std::atomic<ThreadNameData*>& GetThreadNameData();
|
std::atomic<ThreadNameData*>& GetThreadNameData();
|
||||||
void InitRPMallocThread();
|
TRACY_API void InitRPMallocThread();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TRACY_API void SetThreadName( const char* name )
|
TRACY_API void SetThreadName( const char* name )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user