mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Display function assigned to assembly line.
This commit is contained in:
parent
ec3ee09f09
commit
8045ceee5d
@ -3116,6 +3116,18 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
|||||||
lineHovered = true;
|
lineHovered = true;
|
||||||
if( m_font ) ImGui::PopFont();
|
if( m_font ) ImGui::PopFont();
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
if( worker.HasInlineSymbolAddresses() )
|
||||||
|
{
|
||||||
|
const auto symAddr = worker.GetInlineSymbolForAddress( line.addr );
|
||||||
|
if( symAddr != 0 )
|
||||||
|
{
|
||||||
|
const auto symData = worker.GetSymbolData( symAddr );
|
||||||
|
if( symData )
|
||||||
|
{
|
||||||
|
TextFocused( "Function:", worker.GetString( symData->name ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
TextFocused( "File:", fileName );
|
TextFocused( "File:", fileName );
|
||||||
TextFocused( "Line:", RealToString( srcline ) );
|
TextFocused( "Line:", RealToString( srcline ) );
|
||||||
if( SourceFileValid( fileName, worker.GetCaptureTime(), view, worker ) )
|
if( SourceFileValid( fileName, worker.GetCaptureTime(), view, worker ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user