This is a static copy of a profile report

Home

validateFileName>localUnique (Calls: 4, Time: 0.001 s)
Generated 04-Jun-2021 04:11:06 using performance time.
subfunction in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\+validators\validateFileName.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
validateFileNamefunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
105
c(any((c(:)==c(:)')&((1:n)...
40.001 s65.0%
106
c = c(:);
40.000 s11.2%
104
n = numel(c);
40.000 s7.6%
107
end
40.000 s0.3%
All other lines  0.000 s15.9%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function7
Non-code lines (comments, blank lines)3
Code lines (lines that can run)4
Code lines that did run4
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
 101 
function c = localUnique(c)
 102 
% Gets the lower triangular and removes the elements that have originals.
 103 
% This results in a stable unique that's fast for small numbers of elements
< 0.001 
      4 
 104
n = numel(c); 
< 0.001 
      4 
 105
c(any((c(:)==c(:)')&((1:n)'>(1:n)),2)) = []; 
< 0.001 
      4 
 106
c = c(:); 
< 0.001 
      4 
 107
end