mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Hide memory address search in "allocations" section.
This commit is contained in:
parent
0beee3f803
commit
256d905ed5
@ -6779,7 +6779,31 @@ void View::DrawMemory()
|
|||||||
MemSizeToString( mem.usage ),
|
MemSizeToString( mem.usage ),
|
||||||
MemSizeToString( mem.high - mem.low ) );
|
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();
|
ImGui::SameLine();
|
||||||
|
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
@ -6800,31 +6824,7 @@ void View::DrawMemory()
|
|||||||
m_memInfo.ptrFind = 0;
|
m_memInfo.ptrFind = 0;
|
||||||
m_memInfo.pattern[0] = '\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 )
|
if( m_memInfo.ptrFind != 0 )
|
||||||
{
|
{
|
||||||
std::vector<const MemEvent*> match;
|
std::vector<const MemEvent*> match;
|
||||||
|
Loading…
Reference in New Issue
Block a user