This is a static copy of a profile report

Home

num2str>handleNumericPrecision (Calls: 58, Time: 0.012 s)
Generated 16-Jul-2020 17:09:45 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/strfun/num2str.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
num2strfunction58
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
193
s = convertUsingRecycledSprint...
580.011 s91.9%
192
if isreal(x)
580.000 s2.5%
202
end
580.000 s0.3%
194
forceWidth = 0;
580.000 s0.1%
195
f = '';
580.000 s0.1%
All other lines  0.001 s5.1%
Totals  0.012 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
num2str>convertUsingRecycledSprintfsubfunction580.010 s83.3%
Self time (built-ins, overhead, etc.)  0.002 s16.7%
Totals  0.012 s100% 
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function12
Non-code lines (comments, blank lines)1
Code lines (lines that can run)11
Code lines that did run6
Code lines that did not run5
Coverage (did run/can run)54.55 %
Function listing
time 
Calls 
 line
 191 
function [s, forceWidth, f] = handleNumericPrecision(x, precision)
< 0.001 
     58 
 192
    if isreal(x) 
  0.011 
     58 
 193
        s = convertUsingRecycledSprintf(x, precision); 
< 0.001 
     58 
 194
        forceWidth = 0; 
< 0.001 
     58 
 195
        f = ''; 
 196 
    else
 197 
        floatFieldExtra = 6;
 198 
        s = '';
 199 
        forceWidth = precision+floatFieldExtra;
 200 
        f = sprintf('%%.%dg', precision);
< 0.001 
     58 
 201
    end 
< 0.001 
     58 
 202
end 

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