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

Implement transfer of integral values for zones.

This commit is contained in:
Bartosz Taudul
2020-05-24 16:13:09 +02:00
parent 1bcde1f2ff
commit 2b304581cf
8 changed files with 78 additions and 1 deletions
+11
View File
@@ -90,6 +90,17 @@ public:
TracyLfqCommit;
}
tracy_force_inline void Value( uint64_t value )
{
if( !m_active ) return;
#ifdef TRACY_ON_DEMAND
if( GetProfiler().ConnectionId() != m_connectionId ) return;
#endif
TracyLfqPrepare( QueueType::ZoneValue );
MemWrite( &item->zoneValue.value, value );
TracyLfqCommit;
}
private:
const bool m_active;