This is a static copy of a profile report

Home

makeUniqueStrings>truncateString (Calls: 26, Time: 0.001 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
238
str(truncateIdx) = extractBefo...
260.001 s61.1%
237
truncateIdx = (strlength(str) ...
260.000 s25.8%
239
end
260.000 s0.7%
All other lines  0.000 s12.4%
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 function4
Non-code lines (comments, blank lines)1
Code lines (lines that can run)3
Code lines that did run3
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
 236 
function [str, truncateIdx] = truncateString(str, maxStringLength)
< 0.001 
     26 
 237
truncateIdx = (strlength(str) > maxStringLength); 
< 0.001 
     26 
 238
str(truncateIdx) = extractBefore(str(truncateIdx), 1 + maxStringLength); 
< 0.001 
     26 
 239
end 

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