diff --git a/profiler/src/profiler/TracyView_Ranges.cpp b/profiler/src/profiler/TracyView_Ranges.cpp index 9d000fb7..315d7592 100644 --- a/profiler/src/profiler/TracyView_Ranges.cpp +++ b/profiler/src/profiler/TracyView_Ranges.cpp @@ -75,6 +75,13 @@ void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, int range.min = m_vd.zvStart; range.max = m_vd.zvEnd; } + ImGui::SameLine(); + ImGui::Spacing(); + ImGui::SameLine(); + if( ImGui::SmallButton( ICON_FA_NOTE_STICKY " Make annotation" ) ) + { + AddAnnotation( range.min, range.max ); + } TextFocused( ICON_FA_STOPWATCH " Time range:", TimeToStringExact( range.min ) ); ImGui::SameLine(); TextFocused( "-", TimeToStringExact( range.max ) );