diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index b7b50fd2..3479dd56 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -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" ); diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp index 12700948..dfe3b84a 100644 --- a/server/TracySourceView.hpp +++ b/server/TracySourceView.hpp @@ -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;