mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't build inline symbols list, if not needed.
This commit is contained in:
parent
633902cce5
commit
de18dd46b6
@ -405,6 +405,12 @@ void SourceView::RenderSymbolView( const Worker& worker )
|
||||
|
||||
auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen );
|
||||
if( inlineList )
|
||||
{
|
||||
SmallCheckbox( ICON_FA_SITEMAP " Function:", &m_calcInlineStats );
|
||||
ImGui::SameLine();
|
||||
ImGui::SetNextItemWidth( -1 );
|
||||
ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) );
|
||||
if( ImGui::BeginCombo( "##functionList", worker.GetString( sym->name ), ImGuiComboFlags_HeightLarge ) )
|
||||
{
|
||||
const auto symEnd = m_baseAddr + m_codeLen;
|
||||
Vector<uint64_t> symInline( m_baseAddr );
|
||||
@ -417,12 +423,6 @@ void SourceView::RenderSymbolView( const Worker& worker )
|
||||
inlineList++;
|
||||
}
|
||||
|
||||
SmallCheckbox( ICON_FA_SITEMAP " Function:", &m_calcInlineStats );
|
||||
ImGui::SameLine();
|
||||
ImGui::SetNextItemWidth( -1 );
|
||||
ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) );
|
||||
if( ImGui::BeginCombo( "##functionList", worker.GetString( sym->name ), ImGuiComboFlags_HeightLarge ) )
|
||||
{
|
||||
ImGui::Columns( 3 );
|
||||
static bool widthSet = false;
|
||||
if( !widthSet )
|
||||
|
Loading…
Reference in New Issue
Block a user