This is a static copy of a profile report

Home

makeUniqueStrings>validateMaxStringLength (Calls: 26, Time: 0.000 s)
Generated 04-Jun-2021 04:11:17 using performance time.
subfunction in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\lang\+matlab\+lang\makeUniqueStrings.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
makeUniqueStringsfunction26
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
294
end
260.000 s1.3%
289
|| floor(maxStringLength) ~= m...
260.000 s1.3%
288
|| ~isreal(maxStringLength) ||...
260.000 s0.8%
287
if ~isnumeric(maxStringLength)...
260.000 s0.6%
291
end
260.000 s0.4%
All other lines  0.000 s95.6%
Totals  0.000 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 
     26 
 287
if ~isnumeric(maxStringLength) || ~isscalar(maxStringLength) ... 
     26 
 288
   || ~isreal(maxStringLength) || isnan(maxStringLength) ... 
     26 
 289
   || floor(maxStringLength) ~= maxStringLength || maxStringLength < 0 
 290 
    error(message('MATLAB:makeUniqueStrings:BadMaxStringLength'));
< 0.001 
     26 
 291
end 
 292 
% Cap maxStringLength at maxArraySize.
< 0.001 
     26 
 293
maxStringLength = min(maxStringLength, maxArraySize); 
< 0.001 
     26 
 294
end 

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