mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +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 time: %s", TimeToString( GetFrameTime( sel ) ) );
|
||||
}
|
||||
ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[sel] - m_frames[0] ) );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
@ -723,6 +724,7 @@ void View::DrawZones()
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text( buf );
|
||||
ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[i] - m_frames[0] ) );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user