mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 16:54:35 +00:00
Display local call stack for assembly lines.
This commit is contained in:
parent
c041b962c0
commit
70dd37bbea
@ -3769,6 +3769,20 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
|||||||
UnsetFont();
|
UnsetFont();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const auto frame = worker.GetCallstackFrame( worker.PackPointer( line.addr ) );
|
||||||
|
if( frame && frame->size > 1 )
|
||||||
|
{
|
||||||
|
ImGui::Separator();
|
||||||
|
TextDisabledUnformatted( "Local call stack:" );
|
||||||
|
for( uint8_t i=0; i<frame->size; i++ )
|
||||||
|
{
|
||||||
|
ImGui::TextDisabled( "%i.", i+1 );
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Text( "%s", worker.GetString( frame->data[i].name ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( "%s:%i", worker.GetString( frame->data[i].file ), frame->data[i].line );
|
||||||
|
}
|
||||||
|
}
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
SetFont();
|
SetFont();
|
||||||
if( ImGui::IsItemClicked( 0 ) || ImGui::IsItemClicked( 1 ) )
|
if( ImGui::IsItemClicked( 0 ) || ImGui::IsItemClicked( 1 ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user