Allow display of symbol address in statistics view.

This commit is contained in:
Bartosz Taudul 2020-05-30 15:31:41 +02:00
parent 5955efabb0
commit 7ce915c4f6
2 changed files with 13 additions and 2 deletions

View File

@ -11538,6 +11538,8 @@ void View::DrawStatistics()
ImGui::SameLine();
ImGui::Checkbox( ICON_FA_SITEMAP " Inlines", &m_statSeparateInlines );
ImGui::SameLine();
ImGui::Checkbox( ICON_FA_AT " Address", &m_statShowAddress );
ImGui::SameLine();
ImGui::TextUnformatted( "Location:" );
ImGui::SameLine();
const char* locationTable = "Entry\0Sample\0Smart";
@ -11847,7 +11849,11 @@ void View::DrawStatistics()
indentVal = sin( time * 60.f ) * 10.f * time;
ImGui::Indent( indentVal );
}
if( line > 0 )
if( m_statShowAddress )
{
ImGui::TextDisabled( "0x%" PRIx64, v.symAddr );
}
else if( line > 0 )
{
ImGui::TextDisabled( "%s:%i", file, line );
}
@ -12008,7 +12014,11 @@ void View::DrawStatistics()
indentVal = sin( time * 60.f ) * 10.f * time;
ImGui::Indent( indentVal );
}
if( line > 0 )
if( m_statShowAddress )
{
ImGui::TextDisabled( "0x%" PRIx64, iv.symAddr );
}
else if( line > 0 )
{
ImGui::TextDisabled( "%s:%i", file, line );
}

View File

@ -371,6 +371,7 @@ private:
int m_showCallstackFrameAddress = 0;
bool m_showUnknownFrames = true;
bool m_statSeparateInlines = false;
bool m_statShowAddress = false;
bool m_groupChildrenLocations = false;
bool m_allocTimeRelativeToZone = true;
bool m_ctxSwitchTimeRelativeToZone = true;