mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Notify server that parameter was handled.
This commit is contained in:
parent
ea507289c6
commit
ce449ac0e2
@ -2730,6 +2730,8 @@ void Profiler::HandleParameter( uint64_t payload )
|
||||
const auto idx = uint32_t( payload >> 32 );
|
||||
const auto val = int32_t( payload & 0xFFFFFFFF );
|
||||
m_paramCallback( idx, val );
|
||||
TracyLfqPrepare( QueueType::ParamPingback );
|
||||
TracyLfqCommit;
|
||||
}
|
||||
|
||||
void Profiler::HandleSymbolQuery( uint64_t symbol )
|
||||
|
@ -71,6 +71,7 @@ enum class QueueType : uint8_t
|
||||
TidToPid,
|
||||
PlotConfig,
|
||||
ParamSetup,
|
||||
ParamPingback,
|
||||
CpuTopology,
|
||||
StringData,
|
||||
ThreadName,
|
||||
@ -518,6 +519,7 @@ static constexpr size_t QueueDataSize[] = {
|
||||
sizeof( QueueHeader ) + sizeof( QueueTidToPid ),
|
||||
sizeof( QueueHeader ) + sizeof( QueuePlotConfig ),
|
||||
sizeof( QueueHeader ) + sizeof( QueueParamSetup ),
|
||||
sizeof( QueueHeader ), // param pingback
|
||||
sizeof( QueueHeader ) + sizeof( QueueCpuTopology ),
|
||||
// keep all QueueStringTransfer below
|
||||
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // string data
|
||||
|
@ -3795,6 +3795,9 @@ bool Worker::Process( const QueueItem& ev )
|
||||
case QueueType::ParamSetup:
|
||||
ProcessParamSetup( ev.paramSetup );
|
||||
break;
|
||||
case QueueType::ParamPingback:
|
||||
m_serverQuerySpaceLeft++;
|
||||
break;
|
||||
case QueueType::CpuTopology:
|
||||
ProcessCpuTopology( ev.cpuTopology );
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user