| 4421 | } |
| 4422 | |
| 4423 | void 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 | |
| 4436 | void Profiler::MemDiscardCallstack( const char* name, bool secure, int32_t depth ) |
| 4437 | { |
nothing calls this directly
no test coverage detected