1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Move ParamaterSetup() implementation to header.

This commit is contained in:
Bartosz Taudul
2020-01-25 16:51:17 +01:00
parent 13370dc01c
commit ab2fbd6164
2 changed files with 15 additions and 17 deletions
-15
View File
@@ -2620,21 +2620,6 @@ void Profiler::ProcessSysTime()
}
#endif
void Profiler::ParameterSetup( uint32_t idx, const char* name, bool isBool, int32_t val )
{
TracyLfqPrepare( QueueType::ParamSetup );
tracy::MemWrite( &item->paramSetup.idx, idx );
tracy::MemWrite( &item->paramSetup.name, (uint64_t)name );
tracy::MemWrite( &item->paramSetup.isBool, (uint8_t)isBool );
tracy::MemWrite( &item->paramSetup.val, val );
#ifdef TRACY_ON_DEMAND
GetProfiler().DeferItem( *item );
#endif
TracyLfqCommit;
}
void Profiler::HandleParameter( uint64_t payload )
{
assert( m_paramCallback );