diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 3f587d65..de0a7170 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6397,7 +6397,7 @@ void View::DrawZoneInfoWindow() const auto name = m_worker.GetZoneName( sl ); if( ImGui::Selectable( name, false, ImGuiSelectableFlags_SpanAllColumns ) ) { - m_findZone.ShowZone( v->first, name ); + m_findZone.ShowZone( v->first, name, ev.Start(), m_worker.GetZoneEnd( ev ) ); } ImGui::SameLine(); ImGui::TextDisabled( "(\xc3\x97%s)", RealToString( v->second.count, true ) ); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index feb7c397..96be0488 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -497,6 +497,19 @@ private: void ShowZone( int16_t srcloc, const char* name ) { show = true; + limitRange = false; + Reset(); + match.emplace_back( srcloc ); + strcpy( pattern, name ); + } + + void ShowZone( int16_t srcloc, const char* name, int64_t limitMin, int64_t limitMax ) + { + assert( limitMin <= limitMax ); + show = true; + limitRange = true; + rangeMin = limitMin; + rangeMax = limitMax; Reset(); match.emplace_back( srcloc ); strcpy( pattern, name );