Add relative hw samples checkbox.

This commit is contained in:
Bartosz Taudul 2021-07-15 01:44:52 +02:00
parent b4c1313a2e
commit a5e655d1ee
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 5 additions and 2 deletions

View File

@ -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" );

View File

@ -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;