From c13611cf0ccb67442936cc1dcd305838a79616f8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 23 May 2021 21:32:48 +0200 Subject: [PATCH] Make unreliable hw stats darker. --- server/TracySourceView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 0e1b63be..5b17b5a4 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2891,7 +2891,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr { const bool unreliable = hw->cycles < 10 || hw->retired < 10; const float ipc = float( hw->retired ) / hw->cycles; - uint32_t col = unreliable ? 0x66FFFFFF : GetGoodnessColor( ipc * 0.25f ); + uint32_t col = unreliable ? 0x44FFFFFF : GetGoodnessColor( ipc * 0.25f ); if( ipc >= 10 ) { TextColoredUnformatted( col, " 10+ " ); @@ -2929,7 +2929,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr { const bool unreliable = hw->branchRetired < 10; const float rate = float( hw->branchMiss ) / hw->branchRetired; - uint32_t col = unreliable ? 0x66FFFFFF : GetGoodnessColor( 1.f - rate * 3.f ); + uint32_t col = unreliable ? 0x44FFFFFF : GetGoodnessColor( 1.f - rate * 3.f ); if( hw->branchMiss == 0 ) { TextColoredUnformatted( col, " 0% " ); @@ -2979,7 +2979,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr { const bool unreliable = hw->cacheRef < 10; const float rate = float( hw->cacheMiss ) / hw->cacheRef; - uint32_t col = unreliable ? 0xFF888888 : GetGoodnessColor( 1.f - rate * 3.f ); + uint32_t col = unreliable ? 0x44FFFFFF : GetGoodnessColor( 1.f - rate * 3.f ); if( hw->cacheMiss == 0 ) { TextColoredUnformatted( col, " 0%" );