mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Allow viewing global entry stats of a callstack.
This commit is contained in:
parent
39361f71a1
commit
07756476b0
@ -11408,9 +11408,31 @@ void View::DrawCallstackWindow()
|
||||
ImGui::RadioButton( "Symbol address", &m_showCallstackFrameAddress, 2 );
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton( "Entry point", &m_showCallstackFrameAddress, 3 );
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
auto& cs = m_worker.GetCallstack( m_callstackInfoWindow );
|
||||
{
|
||||
auto frame = m_worker.GetCallstackFrame( *cs.begin() );
|
||||
if( frame && frame->data[0].symAddr != 0 )
|
||||
{
|
||||
auto sym = m_worker.GetSymbolStats( frame->data[0].symAddr );
|
||||
if( sym && !sym->parents.empty() )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
#ifdef TRACY_EXTENDED_FONT
|
||||
if( ImGui::Button( ICON_FA_DOOR_OPEN " Global entry statistics" ) )
|
||||
#else
|
||||
if( ImGui::Button( "Global entry statistics" ) )
|
||||
#endif
|
||||
{
|
||||
m_sampleParents.symAddr = frame->data[0].symAddr;
|
||||
m_sampleParents.sel = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
ImGui::Separator();
|
||||
ImGui::BeginChild( "##callstack" );
|
||||
|
Loading…
Reference in New Issue
Block a user