This is a static copy of a profile report

Home

makeUniqueStrings>validateMaxStringLength (Calls: 8, Time: 0.001 s)
Generated 16-Jul-2020 17:09:55 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/lang/+matlab/+lang/makeUniqueStrings.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
makeUniqueStringsfunction8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
294
end
80.000 s0.6%
289
|| floor(maxStringLength) ~= m...
80.000 s0.3%
288
|| ~isreal(maxStringLength) ||...
80.000 s0.2%
287
if ~isnumeric(maxStringLength)...
80.000 s0.1%
291
end
80.000 s0.1%
All other lines  0.001 s98.7%
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 function10
Non-code lines (comments, blank lines)3
Code lines (lines that can run)7
Code lines that did run6
Code lines that did not run1
Coverage (did run/can run)85.71 %
Function listing
time 
Calls 
 line
 285 
function maxStringLength = validateMaxStringLength(maxStringLength, maxArraySize)
 286 
% Validate MAXSTRINGLENGTH, which must be a scalar, non-negative integer.
< 0.001 
      8 
 287
if ~isnumeric(maxStringLength) || ~isscalar(maxStringLength) ... 
      8 
 288
   || ~isreal(maxStringLength) || isnan(maxStringLength) ... 
      8 
 289
   || floor(maxStringLength) ~= maxStringLength || maxStringLength < 0 
 290 
    error(message('MATLAB:makeUniqueStrings:BadMaxStringLength'));
< 0.001 
      8 
 291
end 
 292 
% Cap maxStringLength at maxArraySize.
< 0.001 
      8 
 293
maxStringLength = min(maxStringLength, maxArraySize); 
< 0.001 
      8 
 294
end 

Other subfunctions in this file are not included in this listing.