mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Display per-frame program execution time.
This commit is contained in:
parent
bd382fe2b5
commit
7446e27e60
@ -572,6 +572,7 @@ void View::DrawFrames()
|
|||||||
ImGui::Text( "Frame: %i", sel );
|
ImGui::Text( "Frame: %i", sel );
|
||||||
ImGui::Text( "Frame time: %s", TimeToString( GetFrameTime( sel ) ) );
|
ImGui::Text( "Frame time: %s", TimeToString( GetFrameTime( sel ) ) );
|
||||||
}
|
}
|
||||||
|
ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[sel] - m_frames[0] ) );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -723,6 +724,7 @@ void View::DrawZones()
|
|||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
ImGui::Text( buf );
|
ImGui::Text( buf );
|
||||||
|
ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[i] - m_frames[0] ) );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user