mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 14:54:34 +00:00
Thread information window.
This commit is contained in:
parent
b6079f8c9a
commit
cd275fee9d
@ -2115,11 +2115,25 @@ void View::DrawZones()
|
|||||||
}
|
}
|
||||||
draw->AddText( wpos + ImVec2( ty, offset ), v->showFull ? 0xFFFFFFFF : 0xFF888888, txt );
|
draw->AddText( wpos + ImVec2( ty, offset ), v->showFull ? 0xFFFFFFFF : 0xFF888888, txt );
|
||||||
|
|
||||||
if( hover && ImGui::IsMouseClicked( 0 ) && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + txtsz.x, offset + ty ) ) )
|
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + txtsz.x, offset + ty ) ) )
|
||||||
|
{
|
||||||
|
if( ImGui::IsMouseClicked( 0 ) )
|
||||||
{
|
{
|
||||||
v->showFull = !v->showFull;
|
v->showFull = !v->showFull;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
ImGui::Text( "%s", GetThreadString( v->id ) );
|
||||||
|
ImGui::Separator();
|
||||||
|
if( !v->timeline.empty() )
|
||||||
|
{
|
||||||
|
ImGui::Text( "Appeared at %s", TimeToString( v->timeline.front()->start - m_frames[0] ) );
|
||||||
|
ImGui::Text( "Top-level zones: %zu", v->timeline.size() );
|
||||||
|
}
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
offset += ostep;
|
offset += ostep;
|
||||||
|
|
||||||
if( v->showFull )
|
if( v->showFull )
|
||||||
|
Loading…
Reference in New Issue
Block a user