Notify server that parameter was handled.

This commit is contained in:
Bartosz Taudul 2020-03-25 20:37:26 +01:00
parent ea507289c6
commit ce449ac0e2
3 changed files with 7 additions and 0 deletions

View File

@ -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 )

View File

@ -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

View File

@ -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;