mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Display total frame set time.
This commit is contained in:
parent
27a2d8595d
commit
9b8a0a8364
@ -6373,11 +6373,13 @@ void View::DrawInfo()
|
||||
|
||||
m_frameSortData.average = float( total ) / fsz;
|
||||
m_frameSortData.median = m_frameSortData.data[fsz/2];
|
||||
m_frameSortData.total = total;
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
TextFocused( "Frame set:", m_frames->name == 0 ? "Frames" : m_worker.GetString( m_frames->name ) );
|
||||
TextFocused( "Count:", RealToString( fsz, true ) );
|
||||
TextFocused( "Total time:", TimeToString( m_frameSortData.total ) );
|
||||
TextFocused( "Average frame time:", TimeToString( m_frameSortData.average ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%s FPS)", RealToString( round( 1000000000.0 / m_frameSortData.average ), true ) );
|
||||
|
@ -362,6 +362,7 @@ private:
|
||||
size_t frameNum = 0;
|
||||
float average = 0;
|
||||
float median = 0;
|
||||
int64_t total = 0;
|
||||
} m_frameSortData;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user