mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-02 09:44:35 +00:00
Use less space for call stack tree headers.
This commit is contained in:
parent
fb11d67d8e
commit
e1af87744b
@ -10160,13 +10160,12 @@ void View::DrawMemory()
|
|||||||
if( ImGui::TreeNode( "Bottom-up call stack tree" ) )
|
if( ImGui::TreeNode( "Bottom-up call stack tree" ) )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp );
|
SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." );
|
DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Checkbox( "Only active allocations", &m_activeOnlyBottomUp );
|
SmallCheckbox( "Only active allocations", &m_activeOnlyBottomUp );
|
||||||
TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip." );
|
TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip. Right click on function name to display allocations list." );
|
||||||
TextDisabledUnformatted( "Right click on function name to display allocations list. Right click on file name to open source file." );
|
|
||||||
|
|
||||||
auto& mem = m_worker.GetMemData();
|
auto& mem = m_worker.GetMemData();
|
||||||
auto tree = GetCallstackFrameTreeBottomUp( mem );
|
auto tree = GetCallstackFrameTreeBottomUp( mem );
|
||||||
@ -10184,13 +10183,12 @@ void View::DrawMemory()
|
|||||||
if( ImGui::TreeNode( "Top-down call stack tree" ) )
|
if( ImGui::TreeNode( "Top-down call stack tree" ) )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameTopDown );
|
SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameTopDown );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." );
|
DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Checkbox( "Only active allocations", &m_activeOnlyTopDown );
|
SmallCheckbox( "Only active allocations", &m_activeOnlyTopDown );
|
||||||
TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip." );
|
TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip. Right click on function name to display allocations list." );
|
||||||
TextDisabledUnformatted( "Right click on function name to display allocations list. Right click on file name to open source file." );
|
|
||||||
|
|
||||||
auto& mem = m_worker.GetMemData();
|
auto& mem = m_worker.GetMemData();
|
||||||
auto tree = GetCallstackFrameTreeTopDown( mem );
|
auto tree = GetCallstackFrameTreeTopDown( mem );
|
||||||
|
Loading…
Reference in New Issue
Block a user