MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / MemFree

Method MemFree

Source/ThirdParty/tracy/client/TracyProfiler.cpp:4279–4290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4277}
4278
4279void Profiler::MemFree( const void* ptr, bool secure )
4280{
4281 if( secure && !ProfilerAvailable() ) return;
4282#ifdef TRACY_ON_DEMAND
4283 if( !GetProfiler().IsConnected() ) return;
4284#endif
4285 const auto thread = GetThreadHandle();
4286
4287 GetProfiler().m_serialLock.lock();
4288 SendMemFree( QueueType::MemFree, thread, ptr );
4289 GetProfiler().m_serialLock.unlock();
4290}
4291
4292void Profiler::MemAllocCallstack( const void* ptr, size_t size, int depth, bool secure )
4293{

Callers

nothing calls this directly

Calls 5

ProfilerAvailableFunction · 0.85
SendMemFreeFunction · 0.85
GetThreadHandleFunction · 0.70
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected