mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Display average and median times in compare traces.
This commit is contained in:
parent
29d649216e
commit
384a42cc47
@ -5851,9 +5851,37 @@ void View::DrawCompare()
|
||||
ImGui::TextColored( ImVec4( 0xDD/511.f, 0x22/511.f, 0x22/511.f, 1.f ), ICON_FA_GEM );
|
||||
ImGui::SameLine();
|
||||
#endif
|
||||
TextFocused( "Total time (external):", TimeToString( zoneData1.total * adj1 ) );
|
||||
TextFocused( "Total time (ext.):", TimeToString( zoneData1.total * adj1 ) );
|
||||
TextFocused( "Max counts:", cumulateTime ? TimeToString( maxVal ) : RealToString( floor( maxVal ), true ) );
|
||||
|
||||
#ifdef TRACY_EXTENDED_FONT
|
||||
ImGui::TextColored( ImVec4( 0xDD/511.f, 0xDD/511.f, 0x22/511.f, 1.f ), ICON_FA_LEMON );
|
||||
ImGui::SameLine();
|
||||
#endif
|
||||
TextFocused( "Average time (this):", TimeToString( m_compare.average[0] ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
#ifdef TRACY_EXTENDED_FONT
|
||||
ImGui::TextColored( ImVec4( 0xDD/511.f, 0xDD/511.f, 0x22/511.f, 1.f ), ICON_FA_LEMON );
|
||||
ImGui::SameLine();
|
||||
#endif
|
||||
TextFocused( "Median time (this):", TimeToString( m_compare.median[0] ) );
|
||||
|
||||
#ifdef TRACY_EXTENDED_FONT
|
||||
ImGui::TextColored( ImVec4( 0xDD/511.f, 0x22/511.f, 0x22/511.f, 1.f ), ICON_FA_GEM );
|
||||
ImGui::SameLine();
|
||||
#endif
|
||||
TextFocused( "Average time (ext.):", TimeToString( m_compare.average[1] ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
#ifdef TRACY_EXTENDED_FONT
|
||||
ImGui::TextColored( ImVec4( 0xDD/511.f, 0x22/511.f, 0x22/511.f, 1.f ), ICON_FA_GEM );
|
||||
ImGui::SameLine();
|
||||
#endif
|
||||
TextFocused( "Median time (ext.):", TimeToString( m_compare.median[1] ) );
|
||||
|
||||
#ifdef TRACY_EXTENDED_FONT
|
||||
ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 0xDD/511.f, 0xDD/511.f, 0x22/511.f, 1.f ) );
|
||||
ImGui::PushStyleColor( ImGuiCol_Button, ImVec4( 0xDD/255.f, 0xDD/255.f, 0x22/255.f, 1.f ) );
|
||||
|
Loading…
Reference in New Issue
Block a user