Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-10-26 22:45:14 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-10-26 22:45:14 +0300
commit3afe9a98cff377e755fefe369414a6de49abcfe0 (patch)
treea7aff9aefa3217f90b43892c2cc221d0abb346c0
parent19e36f5e809add817a527e4a76c934e01e06676a (diff)
Move code size to assembly pane.
-rw-r--r--manual/tracy.tex2
-rw-r--r--server/TracySourceView.cpp14
2 files changed, 7 insertions, 9 deletions
diff --git a/manual/tracy.tex b/manual/tracy.tex
index e06502b2..2471ea74 100644
--- a/manual/tracy.tex
+++ b/manual/tracy.tex
@@ -3504,7 +3504,7 @@ Nevertheless, \textbf{the displayed source files might still not reflect the cod
A much more capable symbol view mode is available if the inspected source location has an associated symbol context (i.e., if it comes from a call stack capture, from call stack sampling, etc.). A symbol is a unit of machine code, basically a callable function. It may be generated using multiple source files and may consist of numerous inlined functions. A list of all captured symbols is available in the statistics window, as described in chapter~\ref{statisticssampling}.
-The header of symbol view window contains a name of the selected \emph{\faPuzzlePiece{}~symbol}, a list of \emph{\faSitemap{}~functions} that contribute to the symbol, and information such as \emph{\faWeightHanging{}~Code size} in the program, or count of probed \emph{\faEyeDropper{}~Samples}.
+The header of symbol view window contains a name of the selected \emph{\faPuzzlePiece{}~symbol}, a list of \emph{\faSitemap{}~functions} that contribute to the symbol, and information such as count of probed \emph{\faEyeDropper{}~Samples}.
Additionally, you may use the \emph{Mode} selector to decide what content should be displayed in the panels below:
diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp
index 1d725899..29143a34 100644
--- a/server/TracySourceView.cpp
+++ b/server/TracySourceView.cpp
@@ -1377,14 +1377,6 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
ImGui::RadioButton( "Assembly", &m_displayMode, DisplayAsm );
}
- if( !m_asm.empty() )
- {
- ImGui::SameLine();
- ImGui::Spacing();
- ImGui::SameLine();
- TextFocused( ICON_FA_WEIGHT_HANGING " Code:", MemSizeToString( m_codeLen ) );
- }
-
AddrStatData as;
if( m_cost == CostType::SampleCount )
{
@@ -2432,6 +2424,12 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker
}
}
+ ImGui::SameLine();
+ ImGui::Spacing();
+ ImGui::SameLine();
+ TextFocused( ICON_FA_WEIGHT_HANGING, MemSizeToString( m_codeLen ) );
+ TooltipIfHovered( "Code size" );
+
#ifndef TRACY_NO_FILESELECTOR
ImGui::SameLine();
ImGui::Spacing();