mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Add a function for showing sample parents.
This commit is contained in:
parent
91bb392678
commit
fdd50840a7
@ -11714,8 +11714,7 @@ void View::DrawStatistics()
|
||||
ImGui::PushID( idx++ );
|
||||
if( ImGui::Selectable( name, m_sampleParents.symAddr == v.symAddr, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||
{
|
||||
m_sampleParents.symAddr = v.symAddr;
|
||||
m_sampleParents.sel = 0;
|
||||
ShowSampleParents( v.symAddr );
|
||||
}
|
||||
ImGui::PopID();
|
||||
}
|
||||
@ -11883,8 +11882,7 @@ void View::DrawStatistics()
|
||||
}
|
||||
else if( ImGui::Selectable( name, m_sampleParents.symAddr == iv.symAddr, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||
{
|
||||
m_sampleParents.symAddr = iv.symAddr;
|
||||
m_sampleParents.sel = 0;
|
||||
ShowSampleParents( iv.symAddr );
|
||||
}
|
||||
ImGui::PopID();
|
||||
ImGui::NextColumn();
|
||||
@ -11997,8 +11995,7 @@ void View::DrawCallstackWindow()
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( ICON_FA_DOOR_OPEN " Global entry statistics" ) )
|
||||
{
|
||||
m_sampleParents.symAddr = frame->data[0].symAddr;
|
||||
m_sampleParents.sel = 0;
|
||||
ShowSampleParents( frame->data[0].symAddr );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -92,6 +92,8 @@ public:
|
||||
|
||||
const char* SourceSubstitution( const char* srcFile ) const;
|
||||
|
||||
void ShowSampleParents( uint64_t symAddr ) { m_sampleParents.symAddr = symAddr; m_sampleParents.sel = 0; }
|
||||
|
||||
private:
|
||||
enum class Namespace : uint8_t
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user