mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
Move ParamaterSetup() implementation to header.
This commit is contained in:
parent
13370dc01c
commit
ab2fbd6164
@ -2620,21 +2620,6 @@ void Profiler::ProcessSysTime()
|
|||||||
}
|
}
|
||||||
#endif
|
#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 )
|
void Profiler::HandleParameter( uint64_t payload )
|
||||||
{
|
{
|
||||||
assert( m_paramCallback );
|
assert( m_paramCallback );
|
||||||
|
@ -419,8 +419,21 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ParameterRegister( ParameterCallback cb ) { GetProfiler().m_paramCallback = cb; }
|
static tracy_force_inline void ParameterRegister( ParameterCallback cb ) { GetProfiler().m_paramCallback = cb; }
|
||||||
static void ParameterSetup( uint32_t idx, const char* name, bool isBool, int32_t val );
|
static tracy_force_inline void 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 SendCallstack( int depth, const char* skipBefore );
|
void SendCallstack( int depth, const char* skipBefore );
|
||||||
static void CutCallstack( void* callstack, const char* skipBefore );
|
static void CutCallstack( void* callstack, const char* skipBefore );
|
||||||
|
Loading…
Reference in New Issue
Block a user