mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Notify user about pitfalls of function name grouping.
This commit is contained in:
parent
70ea9e7712
commit
1953a1a1d5
@ -8054,6 +8054,14 @@ void View::DrawMemory()
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp );
|
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp );
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( "(?)" );
|
||||||
|
if( ImGui::IsItemHovered() )
|
||||||
|
{
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
ImGui::Text( "If enabled, only one source location will be displayed (which may be incorrect)." );
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
ImGui::TextDisabled( "Press ctrl key to display allocation info tooltip." );
|
ImGui::TextDisabled( "Press ctrl key to display allocation info tooltip." );
|
||||||
ImGui::TextDisabled( "Right click on function name to display allocations list. Right click on file name to open source file." );
|
ImGui::TextDisabled( "Right click on function name to display allocations list. Right click on file name to open source file." );
|
||||||
|
|
||||||
@ -8074,6 +8082,14 @@ void View::DrawMemory()
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameTopDown );
|
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameTopDown );
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( "(?)" );
|
||||||
|
if( ImGui::IsItemHovered() )
|
||||||
|
{
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
ImGui::Text( "If enabled, only one source location will be displayed (which may be incorrect)." );
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
ImGui::TextDisabled( "Press ctrl key to display allocation info tooltip." );
|
ImGui::TextDisabled( "Press ctrl key to display allocation info tooltip." );
|
||||||
ImGui::TextDisabled( "Right click on function name to display allocations list. Right click on file name to open source file." );
|
ImGui::TextDisabled( "Right click on function name to display allocations list. Right click on file name to open source file." );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user