| 4277 | } |
| 4278 | |
| 4279 | void 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 | |
| 4292 | void Profiler::MemAllocCallstack( const void* ptr, size_t size, int depth, bool secure ) |
| 4293 | { |
nothing calls this directly
no test coverage detected