Display frame address in tooltip.

This commit is contained in:
Bartosz Taudul 2020-03-18 02:36:46 +01:00
parent 6444051382
commit e11bf1d62d

View File

@ -3535,6 +3535,8 @@ int View::DrawGhostLevel( const Vector<GhostZone>& vec, bool hover, double pxns,
const auto file = m_worker.GetString( frame->data[i].file ); const auto file = m_worker.GetString( frame->data[i].file );
const auto line = frame->data[i].line; const auto line = frame->data[i].line;
ImGui::Text( "%s:%i", file, line ); ImGui::Text( "%s:%i", file, line );
ImGui::SameLine();
ImGui::TextDisabled( "(0x%" PRIx64 ")", m_worker.GetCanonicalPointer( ghostFrame ) );
TextFocused( "Thread:", m_worker.GetThreadName( tid ) ); TextFocused( "Thread:", m_worker.GetThreadName( tid ) );
ImGui::SameLine(); ImGui::SameLine();
ImGui::TextDisabled( "(%s)", RealToString( tid ) ); ImGui::TextDisabled( "(%s)", RealToString( tid ) );