1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-02 05:33:53 +00:00

Shorten frame names in callstack tooltip.

This commit is contained in:
Bartosz Taudul 2022-08-15 17:13:39 +02:00
parent 112406472a
commit f2001c95a5
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -4,6 +4,7 @@
#include "../public/common/TracyStackFrames.hpp" #include "../public/common/TracyStackFrames.hpp"
#include "TracyImGui.hpp" #include "TracyImGui.hpp"
#include "TracyPrint.hpp" #include "TracyPrint.hpp"
#include "TracyUtility.hpp"
#include "TracyView.hpp" #include "TracyView.hpp"
namespace tracy namespace tracy
@ -465,10 +466,14 @@ void View::CallstackTooltipContents( uint32_t idx )
{ {
TextColoredUnformatted( 0xFF8888FF, txt ); TextColoredUnformatted( 0xFF8888FF, txt );
} }
else else if( m_shortenName == ShortenName::Never )
{ {
ImGui::TextUnformatted( txt ); ImGui::TextUnformatted( txt );
} }
else
{
ImGui::TextUnformatted( ShortenZoneName( ShortenName::OnlyNormalize, txt ) );
}
if( frameData->imageName.Active() ) if( frameData->imageName.Active() )
{ {
ImGui::SameLine(); ImGui::SameLine();