From 63a8b4cfb4d6db6effaf5c5ddcfe64215138449a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 31 Dec 2025 18:28:57 +0100 Subject: [PATCH] Use proper UTF ellipsis. --- profiler/src/main.cpp | 34 +++++++++---------- profiler/src/profiler/TracyLlm.cpp | 10 +++--- profiler/src/profiler/TracyLlmChat.cpp | 4 +-- profiler/src/profiler/TracyLlmChat.hpp | 2 +- profiler/src/profiler/TracySourceView.cpp | 8 ++--- profiler/src/profiler/TracyView.cpp | 2 +- profiler/src/profiler/TracyView_Compare.cpp | 2 +- profiler/src/profiler/TracyView_FindZone.cpp | 2 +- .../profiler/TracyView_NotificationArea.cpp | 2 +- .../src/profiler/TracyView_Statistics.cpp | 6 ++-- profiler/src/profiler/TracyView_ZoneInfo.cpp | 2 +- 11 files changed, 37 insertions(+), 37 deletions(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 7159ca31..e112461e 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -1169,7 +1169,7 @@ static void DrawContents() { static float rnTime = 0; rnTime += ImGui::GetIO().DeltaTime; - tracy::TextCentered( "Fetching release notes..." ); + tracy::TextCentered( "Fetching release notes…" ); tracy::DrawWaitingDots( rnTime ); } else @@ -1211,9 +1211,9 @@ static void DrawContents() auto totalProgress = progress.total.load( std::memory_order_relaxed ); if( totalProgress != 0 ) { - ImGui::OpenPopup( "Loading trace..." ); + ImGui::OpenPopup( "Loading trace…" ); } - if( ImGui::BeginPopupModal( "Loading trace...", nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings) ) + if( ImGui::BeginPopupModal( "Loading trace…", nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings) ) { ImGui::PushFont( g_fonts.normal, FontNormal * 2.f ); ImGui::Spacing(); @@ -1233,37 +1233,37 @@ static void DrawContents() switch( currProgress ) { case tracy::LoadProgress::Initialization: - ImGui::TextUnformatted( "Initialization..." ); + ImGui::TextUnformatted( "Initialization…" ); break; case tracy::LoadProgress::Locks: - ImGui::TextUnformatted( "Locks..." ); + ImGui::TextUnformatted( "Locks…" ); break; case tracy::LoadProgress::Messages: - ImGui::TextUnformatted( "Messages..." ); + ImGui::TextUnformatted( "Messages…" ); break; case tracy::LoadProgress::Zones: - ImGui::TextUnformatted( "CPU zones..." ); + ImGui::TextUnformatted( "CPU zones…" ); break; case tracy::LoadProgress::GpuZones: - ImGui::TextUnformatted( "GPU zones..." ); + ImGui::TextUnformatted( "GPU zones…" ); break; case tracy::LoadProgress::Plots: - ImGui::TextUnformatted( "Plots..." ); + ImGui::TextUnformatted( "Plots…" ); break; case tracy::LoadProgress::Memory: - ImGui::TextUnformatted( "Memory..." ); + ImGui::TextUnformatted( "Memory…" ); break; case tracy::LoadProgress::CallStacks: - ImGui::TextUnformatted( "Call stacks..." ); + ImGui::TextUnformatted( "Call stacks…" ); break; case tracy::LoadProgress::FrameImages: - ImGui::TextUnformatted( "Frame images..." ); + ImGui::TextUnformatted( "Frame images…" ); break; case tracy::LoadProgress::ContextSwitches: - ImGui::TextUnformatted( "Context switches..." ); + ImGui::TextUnformatted( "Context switches…" ); break; case tracy::LoadProgress::ContextSwitchesPerCpu: - ImGui::TextUnformatted( "CPU context switches..." ); + ImGui::TextUnformatted( "CPU context switches…" ); break; default: assert( false ); @@ -1271,7 +1271,7 @@ static void DrawContents() } ImGui::ProgressBar( float( currProgress ) / totalProgress, ImVec2( 200 * dpiScale, 0 ) ); - ImGui::TextUnformatted( "Progress..." ); + ImGui::TextUnformatted( "Progress…" ); auto subTotal = progress.subTotal.load( std::memory_order_relaxed ); auto subProgress = progress.subProgress.load( std::memory_order_relaxed ); if( subTotal == 0 ) @@ -1287,7 +1287,7 @@ static void DrawContents() switch( viewShutdown.load( std::memory_order_relaxed ) ) { case ViewShutdown::True: - ImGui::OpenPopup( "Capture cleanup..." ); + ImGui::OpenPopup( "Capture cleanup…" ); break; case ViewShutdown::Join: loadThread.join(); @@ -1300,7 +1300,7 @@ static void DrawContents() default: break; } - if( ImGui::BeginPopupModal( "Capture cleanup...", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) ) + if( ImGui::BeginPopupModal( "Capture cleanup…", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) ) { if( viewShutdown.load( std::memory_order_relaxed ) != ViewShutdown::True ) ImGui::CloseCurrentPopup(); ImGui::PushFont( g_fonts.normal, FontNormal * 2.f ); diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index 6dc440d6..a6be709c 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -84,7 +84,7 @@ void TracyLlm::Draw() ImGui::PushFont( g_fonts.normal, FontBig ); ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) ); TextCentered( ICON_FA_HOURGLASS ); - TextCentered( "Please wait..." ); + TextCentered( "Please wait…" ); DrawWaitingDots( s_time ); ImGui::PopFont(); ImGui::End(); @@ -100,7 +100,7 @@ void TracyLlm::Draw() ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 7 ) * 0.5f ) ); TextCentered( ICON_FA_BOOK_BOOKMARK ); ImGui::Spacing(); - TextCentered( "Building manual embeddings..." ); + TextCentered( "Building manual embeddings…" ); ImGui::Spacing(); DrawWaitingDots( s_time ); ImGui::TextUnformatted( "" ); @@ -543,11 +543,11 @@ void TracyLlm::Draw() ImGui::SameLine(); if( disabled ) { - ImGui::TextUnformatted( "Stopping..." ); + ImGui::TextUnformatted( "Stopping…" ); } else { - ImGui::TextUnformatted( "Generating..." ); + ImGui::TextUnformatted( "Generating…" ); } s_wasActive = true; } @@ -563,7 +563,7 @@ void TracyLlm::Draw() buttonSize.x += ImGui::GetStyle().FramePadding.x * 2.0f + ImGui::GetStyle().ItemSpacing.x; ImGui::PushItemWidth( ImGui::GetContentRegionAvail().x - buttonSize.x ); if( inputChanged ) ImGui::GetInputTextState( ImGui::GetCurrentWindow()->GetID( "##chat_input" ) )->ReloadUserBufAndMoveToEnd(); - bool send = ImGui::InputTextWithHint( "##chat_input", "Write your question here...", m_input, InputBufferSize, ImGuiInputTextFlags_EnterReturnsTrue ); + bool send = ImGui::InputTextWithHint( "##chat_input", "Write your question here…", m_input, InputBufferSize, ImGuiInputTextFlags_EnterReturnsTrue ); ImGui::SameLine(); if( *m_input == 0 ) ImGui::BeginDisabled(); send |= ImGui::Button( buttonText ); diff --git a/profiler/src/profiler/TracyLlmChat.cpp b/profiler/src/profiler/TracyLlmChat.cpp index 29b095d7..6ded56ab 100644 --- a/profiler/src/profiler/TracyLlmChat.cpp +++ b/profiler/src/profiler/TracyLlmChat.cpp @@ -262,7 +262,7 @@ bool TracyLlmChat::Turn( TurnRole role, const nlohmann::json& json, bool think, auto& name = json["name"].get_ref(); auto& id = json["tool_call_id"].get_ref(); char buf[1024]; - snprintf( buf, sizeof( buf ), ICON_FA_REPLY " Tool response (%s/%s)...", name.c_str(), id.substr( 0, 8 ).c_str() ); + snprintf( buf, sizeof( buf ), ICON_FA_REPLY " Tool response (%s/%s)…", name.c_str(), id.substr( 0, 8 ).c_str() ); if( ImGui::TreeNode( buf ) ) { std::string parsed; @@ -339,7 +339,7 @@ void TracyLlmChat::ThinkScope( bool spacing ) if( spacing ) ImGui::Spacing(); ImGui::PushID( m_thinkIdx++ ); ImGui::PushStyleColor( ImGuiCol_Text, ThinkColor ); - m_thinkOpen = ImGui::TreeNode( ICON_FA_LIGHTBULB " Internal thoughts..." ); + m_thinkOpen = ImGui::TreeNode( ICON_FA_LIGHTBULB " Internal thoughts…" ); } void TracyLlmChat::PrintThink( const char* str, size_t size ) diff --git a/profiler/src/profiler/TracyLlmChat.hpp b/profiler/src/profiler/TracyLlmChat.hpp index 6d479502..fa8d8fc2 100644 --- a/profiler/src/profiler/TracyLlmChat.hpp +++ b/profiler/src/profiler/TracyLlmChat.hpp @@ -11,7 +11,7 @@ namespace tracy class TracyLlmChat { public: - static constexpr const char* ForgetMsg = "..."; + static constexpr const char* ForgetMsg = "…"; enum class TurnRole { diff --git a/profiler/src/profiler/TracySourceView.cpp b/profiler/src/profiler/TracySourceView.cpp index c79948b8..4b9e7ef1 100644 --- a/profiler/src/profiler/TracySourceView.cpp +++ b/profiler/src/profiler/TracySourceView.cpp @@ -1544,7 +1544,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) { ImGui::PopStyleVar(); ImGui::PopItemFlag(); - TooltipIfHovered( "Please wait, processing data..." ); + TooltipIfHovered( "Please wait, processing data…" ); } else { @@ -1604,7 +1604,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) ImGui::Checkbox( "Limit range", &val ); ImGui::PopItemFlag(); ImGui::PopStyleVar(); - TooltipIfHovered( "Please wait, processing data..." ); + TooltipIfHovered( "Please wait, processing data…" ); } else { @@ -1868,7 +1868,7 @@ void SourceView::RenderSymbolSourceView( const AddrStatData& as, Worker& worker, { ImGui::PopStyleVar(); ImGui::PopItemFlag(); - TooltipIfHovered( "Please wait, processing data..." ); + TooltipIfHovered( "Please wait, processing data…" ); } else { @@ -2706,7 +2706,7 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker } if( ssz != v.second.source.size() ) { - ImGui::TextUnformatted( "..." ); + ImGui::TextUnformatted( "…" ); } ImGui::EndTooltip(); SetFont(); diff --git a/profiler/src/profiler/TracyView.cpp b/profiler/src/profiler/TracyView.cpp index 684116ca..9310762f 100644 --- a/profiler/src/profiler/TracyView.cpp +++ b/profiler/src/profiler/TracyView.cpp @@ -701,7 +701,7 @@ bool View::DrawImpl() TextCentered( ICON_FA_WIFI ); ImGui::Spacing(); ImGui::PopFont(); - ImGui::TextUnformatted( "Waiting for connection..." ); + ImGui::TextUnformatted( "Waiting for connection…" ); DrawWaitingDots( s_time ); ImGui::End(); return keepOpen; diff --git a/profiler/src/profiler/TracyView_Compare.cpp b/profiler/src/profiler/TracyView_Compare.cpp index 4c09e8d3..ba6c4a42 100644 --- a/profiler/src/profiler/TracyView_Compare.cpp +++ b/profiler/src/profiler/TracyView_Compare.cpp @@ -265,7 +265,7 @@ void View::DrawCompare() ImGui::PushFont( g_fonts.normal, FontBig ); ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 - ty ) * 0.5f ) ); TextCentered( ICON_FA_FROG ); - TextCentered( "Please wait, computing data..." ); + TextCentered( "Please wait, computing data…" ); ImGui::PopFont(); DrawWaitingDots( s_time ); ImGui::End(); diff --git a/profiler/src/profiler/TracyView_FindZone.cpp b/profiler/src/profiler/TracyView_FindZone.cpp index e12b4230..aec08ac9 100644 --- a/profiler/src/profiler/TracyView_FindZone.cpp +++ b/profiler/src/profiler/TracyView_FindZone.cpp @@ -271,7 +271,7 @@ void View::DrawFindZone() ImGui::PushFont( g_fonts.normal, FontBig ); ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 - ty ) * 0.5f ) ); TextCentered( ICON_FA_CROW ); - TextCentered( "Please wait, computing data..." ); + TextCentered( "Please wait, computing data…" ); ImGui::PopFont(); DrawWaitingDots( s_time ); ImGui::End(); diff --git a/profiler/src/profiler/TracyView_NotificationArea.cpp b/profiler/src/profiler/TracyView_NotificationArea.cpp index 4d8bd19c..e8c318d4 100644 --- a/profiler/src/profiler/TracyView_NotificationArea.cpp +++ b/profiler/src/profiler/TracyView_NotificationArea.cpp @@ -245,7 +245,7 @@ void View::DrawNotificationArea() if( m_saveThreadState.load( std::memory_order_relaxed ) == SaveThreadState::Saving ) { ImGui::SameLine(); - ImGui::TextUnformatted( ICON_FA_FLOPPY_DISK " Saving trace..." ); + ImGui::TextUnformatted( ICON_FA_FLOPPY_DISK " Saving trace…" ); m_notificationTime = 0; } else if( m_notificationTime > 0 ) diff --git a/profiler/src/profiler/TracyView_Statistics.cpp b/profiler/src/profiler/TracyView_Statistics.cpp index f8101897..369f5a51 100644 --- a/profiler/src/profiler/TracyView_Statistics.cpp +++ b/profiler/src/profiler/TracyView_Statistics.cpp @@ -51,7 +51,7 @@ void View::DrawStatistics() ImGui::PushFont( g_fonts.normal, FontBig ); ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 - ty ) * 0.5f ) ); TextCentered( ICON_FA_HIPPO ); - TextCentered( "Please wait, computing data..." ); + TextCentered( "Please wait, computing data…" ); ImGui::PopFont(); DrawWaitingDots( s_time ); ImGui::End(); @@ -104,7 +104,7 @@ void View::DrawStatistics() ImGui::Spacing(); ImGui::Separator(); ImGui::PopStyleVar(); - ImGui::TextWrapped( "Please wait, computing data..." ); + ImGui::TextWrapped( "Please wait, computing data…" ); DrawWaitingDots( s_time ); ImGui::End(); return; @@ -327,7 +327,7 @@ void View::DrawStatistics() ImGui::Spacing(); ImGui::Separator(); ImGui::PopStyleVar(); - ImGui::TextWrapped( "Please wait, computing data..." ); + ImGui::TextWrapped( "Please wait, computing data…" ); DrawWaitingDots( s_time ); ImGui::End(); return; diff --git a/profiler/src/profiler/TracyView_ZoneInfo.cpp b/profiler/src/profiler/TracyView_ZoneInfo.cpp index 6bb736f3..d06605e0 100644 --- a/profiler/src/profiler/TracyView_ZoneInfo.cpp +++ b/profiler/src/profiler/TracyView_ZoneInfo.cpp @@ -798,7 +798,7 @@ void View::DrawZoneInfoWindow() { if( !mem.plot ) { - ImGui::Text( "Please wait, computing data..." ); + ImGui::Text( "Please wait, computing data…" ); DrawWaitingDots( s_time ); } else