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.
This commit is contained in:
Bartosz Taudul
2026-07-27 22:02:20 +02:00
parent 36d93e27c4
commit d3af48990c
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@@ -206,7 +206,7 @@ void View::DrawSamplesStatistics( Vector<SymList>& 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 )