From d3af48990c2f76b3d5e40256050cb54f31f5afa2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 27 Jul 2026 22:02:20 +0200 Subject: [PATCH] Change "hide unknown" check from unknown file name to unknown function name. Knowing that function "memcpy" took a certain amount of time is very actionable, even if the source file name (from libc) is not available. --- manual/tracy.md | 2 +- manual/tracy.tex | 2 +- profiler/src/profiler/TracyView_Samples.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manual/tracy.md b/manual/tracy.md index a7c0da83..ca0323af 100644 --- a/manual/tracy.md +++ b/manual/tracy.md @@ -3993,7 +3993,7 @@ The *Location* column displays the corresponding source file name and line numbe The location data is complemented by the originating executable image name, contained in the *Image* column. If the * Short images* option is selected, the image path will be shortened to just the image file name, with the full path available in the tooltip. -The profiler may not find some function locations due to insufficient debugging data available on the client-side. To filter out such entries, use the * Hide unknown* option. +The profiler may not find some function names due to insufficient debugging data available on the client-side. To filter out such entries, use the * Hide unknown* option. The *Time* or *Count* column (depending on the * Show time* option selection) shows number of taken samples, either as a raw count, or in an easier to understand time format. Note that the percentage value of time is calculated relative to the wall-clock time. The percentage value of sample counts is relative to the number of collected samples, excluding context switch samples, which do not participate in the sampling statistics (section [3.18.5.1](#waitstacks)). You can also make the percentages of inline functions relative to the base symbol measurements by enabling the * Base relative* option. diff --git a/manual/tracy.tex b/manual/tracy.tex index f422516a..7071a23c 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -4391,7 +4391,7 @@ The \emph{Location} column displays the corresponding source file name and line The location data is complemented by the originating executable image name, contained in the \emph{Image} column. If the \emph{\faScissors{}~Short images} option is selected, the image path will be shortened to just the image file name, with the full path available in the tooltip. -The profiler may not find some function locations due to insufficient debugging data available on the client-side. To filter out such entries, use the \emph{\faEyeSlash{}~Hide unknown} option. +The profiler may not find some function names due to insufficient debugging data available on the client-side. To filter out such entries, use the \emph{\faEyeSlash{}~Hide unknown} option. The \emph{Time} or \emph{Count} column (depending on the \emph{\faStopwatch{}~Show time} option selection) shows number of taken samples, either as a raw count, or in an easier to understand time format. Note that the percentage value of time is calculated relative to the wall-clock time. The percentage value of sample counts is relative to the number of collected samples, excluding context switch samples, which do not participate in the sampling statistics (section~\ref{waitstacks}). You can also make the percentages of inline functions relative to the base symbol measurements by enabling the \emph{\faLink{}~Base relative} option. diff --git a/profiler/src/profiler/TracyView_Samples.cpp b/profiler/src/profiler/TracyView_Samples.cpp index 9440df00..977254ae 100644 --- a/profiler/src/profiler/TracyView_Samples.cpp +++ b/profiler/src/profiler/TracyView_Samples.cpp @@ -206,7 +206,7 @@ void View::DrawSamplesStatistics( Vector& data, int64_t timeRange, uint assert( false ); break; } - if( m_statHideUnknown && file[0] == '[' ) continue; + if( m_statHideUnknown && strcmp( name, "[unknown]" ) == 0 ) continue; symlen = sit->second.size.Val(); } else if( m_statHideUnknown )