Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'server/TracySourceView.cpp')
-rw-r--r--server/TracySourceView.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp
index dde7ce04..e63b980d 100644
--- a/server/TracySourceView.cpp
+++ b/server/TracySourceView.cpp
@@ -3769,6 +3769,20 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
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();
SetFont();
if( ImGui::IsItemClicked( 0 ) || ImGui::IsItemClicked( 1 ) )