mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
More condensed child zone time graph.
This commit is contained in:
parent
9864ef70c9
commit
dd0c283a3b
@ -1303,6 +1303,7 @@ void View::DrawZoneInfoWindow()
|
|||||||
|
|
||||||
if( !ev.child.empty() )
|
if( !ev.child.empty() )
|
||||||
{
|
{
|
||||||
|
const auto ty = ImGui::GetTextLineHeight();
|
||||||
ImGui::Columns( 2 );
|
ImGui::Columns( 2 );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text( "Child zones: %" PRIu64, ev.child.size() );
|
ImGui::Text( "Child zones: %" PRIu64, ev.child.size() );
|
||||||
@ -1339,7 +1340,7 @@ void View::DrawZoneInfoWindow()
|
|||||||
const auto part = double( ctt[cti[i]] ) / ztime;
|
const auto part = double( ctt[cti[i]] ) / ztime;
|
||||||
char buf[128];
|
char buf[128];
|
||||||
sprintf( buf, "%s (%.2f%%)", TimeToString( ctt[cti[i]] ), part * 100 );
|
sprintf( buf, "%s (%.2f%%)", TimeToString( ctt[cti[i]] ), part * 100 );
|
||||||
ImGui::ProgressBar( part, ImVec2( -1, 0 ), buf );
|
ImGui::ProgressBar( part, ImVec2( -1, ty ), buf );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
}
|
}
|
||||||
ImGui::EndColumns();
|
ImGui::EndColumns();
|
||||||
|
Loading…
Reference in New Issue
Block a user