diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 67912aa9..64d02070 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4604,6 +4604,7 @@ void View::DrawFindZone() { auto& vec = m_findZone.sorted; vec.reserve( zsz ); + int64_t total = m_findZone.total; size_t i; for( i=m_findZone.sortedNum; iAddLine( ImVec2( wpos.x + ta, wpos.y ), ImVec2( wpos.x + ta, wpos.y+Height-2 ), 0xFFFF88FF ); + } + else + { + draw->AddLine( ImVec2( wpos.x + ta, wpos.y ), ImVec2( wpos.x + ta, wpos.y+Height-2 ), 0xFF4444FF ); + draw->AddLine( ImVec2( wpos.x + tm, wpos.y ), ImVec2( wpos.x + tm, wpos.y+Height-2 ), 0xFFFF8844 ); + } + if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 2, 2 ), wpos + ImVec2( w-2, Height + round( ty * 1.5 ) ) ) ) { const auto ltmin = log10fast( tmin ); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 6eae9cb9..99443f61 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -293,6 +293,9 @@ private: std::unique_ptr bins, binTime, selBin; std::vector sorted; size_t sortedNum; + float average; + float median; + int64_t total; void Reset() { @@ -303,6 +306,9 @@ private: highlight.active = false; sorted.clear(); sortedNum = 0; + average = 0; + median = 0; + total = 0; } void ResetGroups()