Add natvis for ContextSwitchData and ContextSwitchCpu.

This commit is contained in:
Bartosz Taudul 2019-10-15 14:11:02 +02:00
parent fefa3b4693
commit a20c6604c3

View File

@ -29,4 +29,10 @@
</ArrayItems>
</Expand>
</Type>
<Type Name="tracy::ContextSwitchData">
<DisplayString>{{ start={int64_t( _start_cpu ) >> 8} end={int64_t( _end_reason_state ) >> 16} cpu={uint8_t( _start_cpu &amp; 0xFF )} reason={int8_t( (_end_reason_state >> 8) &amp; 0xFF )} state={int8_t( _end_reason_state &amp; 0xFF )} }}</DisplayString>
</Type>
<Type Name="tracy::ContextSwitchCpu">
<DisplayString>{{ start={int64_t( _start_thread ) >> 16} end={_end} thread={uint16_t( _start_thread )} }}</DisplayString>
</Type>
</AutoVisualizer>