mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 14:03:52 +00:00
Allow disabling context switch drawing.
This commit is contained in:
parent
874a2596f7
commit
d77c87ae1c
@ -1883,11 +1883,14 @@ void View::DrawZones()
|
|||||||
offset += ostep;
|
offset += ostep;
|
||||||
if( showFull )
|
if( showFull )
|
||||||
{
|
{
|
||||||
auto ctxSwitch = m_worker.GetContextSwitchData( v->id );
|
if( m_drawContextSwitches )
|
||||||
if( ctxSwitch )
|
|
||||||
{
|
{
|
||||||
DrawContextSwitches( ctxSwitch, pxns, int64_t( nspx ), wpos, offset );
|
auto ctxSwitch = m_worker.GetContextSwitchData( v->id );
|
||||||
offset += round( ostep * 0.75f );
|
if( ctxSwitch )
|
||||||
|
{
|
||||||
|
DrawContextSwitches( ctxSwitch, pxns, int64_t( nspx ), wpos, offset );
|
||||||
|
offset += round( ostep * 0.75f );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_drawZones )
|
if( m_drawZones )
|
||||||
@ -5344,6 +5347,11 @@ void View::DrawOptions()
|
|||||||
ImGui::Checkbox( ICON_FA_EXPAND " Draw empty labels", &m_drawEmptyLabels );
|
ImGui::Checkbox( ICON_FA_EXPAND " Draw empty labels", &m_drawEmptyLabels );
|
||||||
#else
|
#else
|
||||||
ImGui::Checkbox( "Draw empty labels", &m_drawEmptyLabels );
|
ImGui::Checkbox( "Draw empty labels", &m_drawEmptyLabels );
|
||||||
|
#endif
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
ImGui::Checkbox( ICON_FA_HIKING " Draw context switches", &m_drawContextSwitches );
|
||||||
|
#else
|
||||||
|
ImGui::Checkbox( "Draw context switches", &m_drawContextSwitches );
|
||||||
#endif
|
#endif
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
|
@ -291,6 +291,7 @@ private:
|
|||||||
bool m_onlyContendedLocks = true;
|
bool m_onlyContendedLocks = true;
|
||||||
bool m_goToFrame = false;
|
bool m_goToFrame = false;
|
||||||
bool m_drawEmptyLabels = false;
|
bool m_drawEmptyLabels = false;
|
||||||
|
bool m_drawContextSwitches = true;
|
||||||
|
|
||||||
int m_statSort = 0;
|
int m_statSort = 0;
|
||||||
bool m_statSelf = false;
|
bool m_statSelf = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user