mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Shorten frame names in callstack tooltip.
This commit is contained in:
parent
112406472a
commit
f2001c95a5
@ -4,6 +4,7 @@
|
||||
#include "../public/common/TracyStackFrames.hpp"
|
||||
#include "TracyImGui.hpp"
|
||||
#include "TracyPrint.hpp"
|
||||
#include "TracyUtility.hpp"
|
||||
#include "TracyView.hpp"
|
||||
|
||||
namespace tracy
|
||||
@ -465,10 +466,14 @@ void View::CallstackTooltipContents( uint32_t idx )
|
||||
{
|
||||
TextColoredUnformatted( 0xFF8888FF, txt );
|
||||
}
|
||||
else
|
||||
else if( m_shortenName == ShortenName::Never )
|
||||
{
|
||||
ImGui::TextUnformatted( txt );
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::TextUnformatted( ShortenZoneName( ShortenName::OnlyNormalize, txt ) );
|
||||
}
|
||||
if( frameData->imageName.Active() )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
|
Loading…
Reference in New Issue
Block a user