Hide memory address search in "allocations" section.

This commit is contained in:
Bartosz Taudul 2018-08-25 15:05:05 +02:00
parent 0beee3f803
commit 256d905ed5

View File

@ -6779,7 +6779,31 @@ void View::DrawMemory()
MemSizeToString( mem.usage ),
MemSizeToString( mem.high - mem.low ) );
ImGui::InputText( "", m_memInfo.pattern, 1024 );
#ifdef TRACY_EXTENDED_FONT
ImGui::Checkbox( ICON_FA_HISTORY " Restrict time", &m_memInfo.restrictTime );
#else
ImGui::Checkbox( "Restrict time", &m_memInfo.restrictTime );
#endif
ImGui::SameLine();
ImGui::TextDisabled( "(?)" );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::Text( "Don't show allocations beyond the middle of timeline" );
ImGui::Text( "display (it is indicated by purple line)." );
ImGui::EndTooltip();
}
const auto zvMid = m_zvStart + ( m_zvEnd - m_zvStart ) / 2;
ImGui::Separator();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::TreeNode( ICON_FA_AT " Allocations" ) )
#else
if( ImGui::TreeNode( "Allocations" ) )
#endif
{
ImGui::InputText( "###address", m_memInfo.pattern, 1024 );
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
@ -6800,31 +6824,7 @@ void View::DrawMemory()
m_memInfo.ptrFind = 0;
m_memInfo.pattern[0] = '\0';
}
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
ImGui::Checkbox( ICON_FA_HISTORY " Restrict time", &m_memInfo.restrictTime );
#else
ImGui::Checkbox( "Restrict time", &m_memInfo.restrictTime );
#endif
ImGui::SameLine();
ImGui::TextDisabled( "(?)" );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::Text( "Don't show allocations beyond the middle of timeline" );
ImGui::Text( "display (it is indicated by purple line)." );
ImGui::EndTooltip();
}
const auto zvMid = m_zvStart + ( m_zvEnd - m_zvStart ) / 2;
ImGui::Separator();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::TreeNodeEx( ICON_FA_AT " Allocations", ImGuiTreeNodeFlags_DefaultOpen ) )
#else
if( ImGui::TreeNodeEx( "Allocations", ImGuiTreeNodeFlags_DefaultOpen ) )
#endif
{
if( m_memInfo.ptrFind != 0 )
{
std::vector<const MemEvent*> match;