mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Symbol history walking.
This commit is contained in:
parent
2a6a082c93
commit
2c18097bf9
@ -1146,6 +1146,22 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
|||||||
auto sym = worker.GetSymbolData( m_symAddr );
|
auto sym = worker.GetSymbolData( m_symAddr );
|
||||||
assert( sym );
|
assert( sym );
|
||||||
ImGui::PushFont( m_bigFont );
|
ImGui::PushFont( m_bigFont );
|
||||||
|
ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) );
|
||||||
|
if( ButtonDisablable( " " ICON_FA_CARET_LEFT " ", m_historyCursor <= 1 ) )
|
||||||
|
{
|
||||||
|
m_historyCursor--;
|
||||||
|
const auto& entry = m_history[m_historyCursor-1];
|
||||||
|
OpenSymbol( entry.fileName, entry.line, entry.baseAddr, entry.symAddr, worker, view, false );
|
||||||
|
}
|
||||||
|
ImGui::SameLine( 0, 0 );
|
||||||
|
if( ButtonDisablable( " " ICON_FA_CARET_RIGHT " ", m_historyCursor == m_history.size() ) )
|
||||||
|
{
|
||||||
|
m_historyCursor++;
|
||||||
|
const auto& entry = m_history[m_historyCursor-1];
|
||||||
|
OpenSymbol( entry.fileName, entry.line, entry.baseAddr, entry.symAddr, worker, view, false );
|
||||||
|
}
|
||||||
|
ImGui::PopStyleVar();
|
||||||
|
ImGui::SameLine();
|
||||||
if( sym->isInline )
|
if( sym->isInline )
|
||||||
{
|
{
|
||||||
auto parent = worker.GetSymbolData( m_baseAddr );
|
auto parent = worker.GetSymbolData( m_baseAddr );
|
||||||
|
Loading…
Reference in New Issue
Block a user