mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Add relative hw samples checkbox.
This commit is contained in:
parent
b4c1313a2e
commit
a5e655d1ee
@ -173,13 +173,14 @@ SourceView::SourceView( ImFont* font, GetWindowCallback gwcb )
|
||||
, m_codeLen( 0 )
|
||||
, m_highlightAddr( 0 )
|
||||
, m_asmCountBase( -1 )
|
||||
, m_asmRelative( false )
|
||||
, m_asmRelative( true )
|
||||
, m_asmBytes( false )
|
||||
, m_asmShowSourceLocation( true )
|
||||
, m_calcInlineStats( true )
|
||||
, m_atnt( false )
|
||||
, m_childCalls( false )
|
||||
, m_hwSamples( true )
|
||||
, m_hwSamplesRelative( true )
|
||||
, m_cost( CostType::SampleCount )
|
||||
, m_showJumps( true )
|
||||
, m_cpuArch( CpuArchUnknown )
|
||||
@ -1244,6 +1245,8 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
||||
{
|
||||
SmallCheckbox( ICON_FA_HAMMER " Hw samples", &m_hwSamples );
|
||||
ImGui::SameLine();
|
||||
SmallCheckbox( "Relative", &m_hwSamplesRelative );
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
ImGui::TextUnformatted( ICON_FA_HIGHLIGHTER " Cost" );
|
||||
|
@ -198,7 +198,7 @@ private:
|
||||
uint8_t m_maxAsmBytes;
|
||||
bool m_atnt;
|
||||
uint64_t m_jumpPopupAddr;
|
||||
bool m_hwSamples;
|
||||
bool m_hwSamples, m_hwSamplesRelative;
|
||||
bool m_childCalls;
|
||||
CostType m_cost;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user