Skip to content

Commit 0778ef8

Browse files
committed
Draw external frames dimmed in sample entry stacks.
1 parent 5e6d872 commit 0778ef8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

profiler/src/profiler/TracyView_Samples.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,8 @@ void View::DrawSampleParents()
10381038
{
10391039
const auto& frame = frameData->data[f];
10401040

1041-
if( m_worker.IsFrameExternal( frame.file, frameData->imageName ) )
1041+
const auto isExternal = m_worker.IsFrameExternal( frame.file, frameData->imageName );
1042+
if( isExternal )
10421043
{
10431044
if( !m_showExternalFrames )
10441045
{
@@ -1091,6 +1092,10 @@ void View::DrawSampleParents()
10911092
{
10921093
TextColoredUnformatted( 0xFF8888FF, txt );
10931094
}
1095+
else if( isExternal )
1096+
{
1097+
TextDisabledUnformatted( txt );
1098+
}
10941099
else if( m_vd.shortenName == ShortenName::Never )
10951100
{
10961101
ImGui::TextUnformatted( txt );

0 commit comments

Comments
 (0)