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

Method MemDiscard

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

Source from the content-addressed store, hash-verified

4421}
4422
4423void Profiler::MemDiscard( const char* name, bool secure )
4424{
4425 if( secure && !ProfilerAvailable() ) return;
4426#ifdef TRACY_ON_DEMAND
4427 if( !GetProfiler().IsConnected() ) return;
4428#endif
4429 const auto thread = GetThreadHandle();
4430
4431 GetProfiler().m_serialLock.lock();
4432 SendMemDiscard( QueueType::MemDiscard, thread, name );
4433 GetProfiler().m_serialLock.unlock();
4434}
4435
4436void Profiler::MemDiscardCallstack( const char* name, bool secure, int32_t depth )
4437{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected