mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Proper message when call stack trees are not available.
This commit is contained in:
parent
46f7235e32
commit
7a1fb4e0bd
@ -11889,6 +11889,7 @@ void View::DrawMemory()
|
|||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
if( ImGui::TreeNode( ICON_FA_ALIGN_JUSTIFY " Bottom-up call stack tree" ) )
|
if( ImGui::TreeNode( ICON_FA_ALIGN_JUSTIFY " Bottom-up call stack tree" ) )
|
||||||
@ -11912,8 +11913,15 @@ void View::DrawMemory()
|
|||||||
auto& mem = m_worker.GetMemData();
|
auto& mem = m_worker.GetMemData();
|
||||||
auto tree = GetCallstackFrameTreeBottomUp( mem );
|
auto tree = GetCallstackFrameTreeBottomUp( mem );
|
||||||
|
|
||||||
|
if( !tree.empty() )
|
||||||
|
{
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
DrawFrameTreeLevel( tree, idx );
|
DrawFrameTreeLevel( tree, idx );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TextDisabledUnformatted( "No call stack data collected" );
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
@ -11941,8 +11949,15 @@ void View::DrawMemory()
|
|||||||
auto& mem = m_worker.GetMemData();
|
auto& mem = m_worker.GetMemData();
|
||||||
auto tree = GetCallstackFrameTreeTopDown( mem );
|
auto tree = GetCallstackFrameTreeTopDown( mem );
|
||||||
|
|
||||||
|
if( !tree.empty() )
|
||||||
|
{
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
DrawFrameTreeLevel( tree, idx );
|
DrawFrameTreeLevel( tree, idx );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TextDisabledUnformatted( "No call stack data collected" );
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user