mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 06:03:51 +00:00
Allow display of symbol address in statistics view.
This commit is contained in:
parent
5955efabb0
commit
7ce915c4f6
@ -11538,6 +11538,8 @@ void View::DrawStatistics()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Checkbox( ICON_FA_SITEMAP " Inlines", &m_statSeparateInlines );
|
ImGui::Checkbox( ICON_FA_SITEMAP " Inlines", &m_statSeparateInlines );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
ImGui::Checkbox( ICON_FA_AT " Address", &m_statShowAddress );
|
||||||
|
ImGui::SameLine();
|
||||||
ImGui::TextUnformatted( "Location:" );
|
ImGui::TextUnformatted( "Location:" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
const char* locationTable = "Entry\0Sample\0Smart";
|
const char* locationTable = "Entry\0Sample\0Smart";
|
||||||
@ -11847,7 +11849,11 @@ void View::DrawStatistics()
|
|||||||
indentVal = sin( time * 60.f ) * 10.f * time;
|
indentVal = sin( time * 60.f ) * 10.f * time;
|
||||||
ImGui::Indent( indentVal );
|
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 );
|
ImGui::TextDisabled( "%s:%i", file, line );
|
||||||
}
|
}
|
||||||
@ -12008,7 +12014,11 @@ void View::DrawStatistics()
|
|||||||
indentVal = sin( time * 60.f ) * 10.f * time;
|
indentVal = sin( time * 60.f ) * 10.f * time;
|
||||||
ImGui::Indent( indentVal );
|
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 );
|
ImGui::TextDisabled( "%s:%i", file, line );
|
||||||
}
|
}
|
||||||
|
@ -371,6 +371,7 @@ private:
|
|||||||
int m_showCallstackFrameAddress = 0;
|
int m_showCallstackFrameAddress = 0;
|
||||||
bool m_showUnknownFrames = true;
|
bool m_showUnknownFrames = true;
|
||||||
bool m_statSeparateInlines = false;
|
bool m_statSeparateInlines = false;
|
||||||
|
bool m_statShowAddress = false;
|
||||||
bool m_groupChildrenLocations = false;
|
bool m_groupChildrenLocations = false;
|
||||||
bool m_allocTimeRelativeToZone = true;
|
bool m_allocTimeRelativeToZone = true;
|
||||||
bool m_ctxSwitchTimeRelativeToZone = true;
|
bool m_ctxSwitchTimeRelativeToZone = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user