File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -11538,6 +11538,8 @@ void View::DrawStatistics()
1153811538 ImGui::SameLine();
1153911539 ImGui::Checkbox( ICON_FA_SITEMAP " Inlines", &m_statSeparateInlines );
1154011540 ImGui::SameLine();
11541+ ImGui::Checkbox( ICON_FA_AT " Address", &m_statShowAddress );
11542+ ImGui::SameLine();
1154111543 ImGui::TextUnformatted( "Location:" );
1154211544 ImGui::SameLine();
1154311545 const char* locationTable = "Entry\0Sample\0Smart";
@@ -11847,7 +11849,11 @@ void View::DrawStatistics()
1184711849 indentVal = sin( time * 60.f ) * 10.f * time;
1184811850 ImGui::Indent( indentVal );
1184911851 }
11850- if( line > 0 )
11852+ if( m_statShowAddress )
11853+ {
11854+ ImGui::TextDisabled( "0x%" PRIx64, v.symAddr );
11855+ }
11856+ else if( line > 0 )
1185111857 {
1185211858 ImGui::TextDisabled( "%s:%i", file, line );
1185311859 }
@@ -12008,7 +12014,11 @@ void View::DrawStatistics()
1200812014 indentVal = sin( time * 60.f ) * 10.f * time;
1200912015 ImGui::Indent( indentVal );
1201012016 }
12011- if( line > 0 )
12017+ if( m_statShowAddress )
12018+ {
12019+ ImGui::TextDisabled( "0x%" PRIx64, iv.symAddr );
12020+ }
12021+ else if( line > 0 )
1201212022 {
1201312023 ImGui::TextDisabled( "%s:%i", file, line );
1201412024 }
Original file line number Diff line number Diff line change @@ -371,6 +371,7 @@ class View
371371 int m_showCallstackFrameAddress = 0 ;
372372 bool m_showUnknownFrames = true ;
373373 bool m_statSeparateInlines = false ;
374+ bool m_statShowAddress = false ;
374375 bool m_groupChildrenLocations = false ;
375376 bool m_allocTimeRelativeToZone = true ;
376377 bool m_ctxSwitchTimeRelativeToZone = true ;
You can’t perform that action at this time.
0 commit comments