mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01:48 +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 idx = uint32_t( payload >> 32 );
|
||||||
const auto val = int32_t( payload & 0xFFFFFFFF );
|
const auto val = int32_t( payload & 0xFFFFFFFF );
|
||||||
m_paramCallback( idx, val );
|
m_paramCallback( idx, val );
|
||||||
|
TracyLfqPrepare( QueueType::ParamPingback );
|
||||||
|
TracyLfqCommit;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Profiler::HandleSymbolQuery( uint64_t symbol )
|
void Profiler::HandleSymbolQuery( uint64_t symbol )
|
||||||
|
@ -71,6 +71,7 @@ enum class QueueType : uint8_t
|
|||||||
TidToPid,
|
TidToPid,
|
||||||
PlotConfig,
|
PlotConfig,
|
||||||
ParamSetup,
|
ParamSetup,
|
||||||
|
ParamPingback,
|
||||||
CpuTopology,
|
CpuTopology,
|
||||||
StringData,
|
StringData,
|
||||||
ThreadName,
|
ThreadName,
|
||||||
@ -518,6 +519,7 @@ static constexpr size_t QueueDataSize[] = {
|
|||||||
sizeof( QueueHeader ) + sizeof( QueueTidToPid ),
|
sizeof( QueueHeader ) + sizeof( QueueTidToPid ),
|
||||||
sizeof( QueueHeader ) + sizeof( QueuePlotConfig ),
|
sizeof( QueueHeader ) + sizeof( QueuePlotConfig ),
|
||||||
sizeof( QueueHeader ) + sizeof( QueueParamSetup ),
|
sizeof( QueueHeader ) + sizeof( QueueParamSetup ),
|
||||||
|
sizeof( QueueHeader ), // param pingback
|
||||||
sizeof( QueueHeader ) + sizeof( QueueCpuTopology ),
|
sizeof( QueueHeader ) + sizeof( QueueCpuTopology ),
|
||||||
// keep all QueueStringTransfer below
|
// keep all QueueStringTransfer below
|
||||||
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // string data
|
sizeof( QueueHeader ) + sizeof( QueueStringTransfer ), // string data
|
||||||
|
@ -3795,6 +3795,9 @@ bool Worker::Process( const QueueItem& ev )
|
|||||||
case QueueType::ParamSetup:
|
case QueueType::ParamSetup:
|
||||||
ProcessParamSetup( ev.paramSetup );
|
ProcessParamSetup( ev.paramSetup );
|
||||||
break;
|
break;
|
||||||
|
case QueueType::ParamPingback:
|
||||||
|
m_serverQuerySpaceLeft++;
|
||||||
|
break;
|
||||||
case QueueType::CpuTopology:
|
case QueueType::CpuTopology:
|
||||||
ProcessCpuTopology( ev.cpuTopology );
|
ProcessCpuTopology( ev.cpuTopology );
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user