This is a static copy of a profile report

Home

num2str>handleNumericPrecision (2324 calls, 0.811 sec)
Generated 05-Nov-2014 07:52:34 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/matlab/strfun/num2str.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
num2strfunction2324
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
187
s = convertUsingRecycledSprint...
23240.691 s85.2%
186
if isreal(x)
23240.040 s4.9%
189
f = '';
23240.020 s2.5%
188
forceWidth = 0;
23240.010 s1.2%
196
end
23240 s0%
All other lines  0.050 s6.2%
Totals  0.811 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
num2str>convertUsingRecycledSprintfsubfunction23240.641 s79.0%
Self time (built-ins, overhead, etc.)  0.170 s21.0%
Totals  0.811 s100% 
Code Analyzer results
No Code Analyzer messages.
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 run5
Code lines that did not run6
Coverage (did run/can run)45.45 %
Function listing
   time   calls  line
185 function [s, forceWidth, f] = handleNumericPrecision(x, precision)
0.04 2324 186 if isreal(x)
0.69 2324 187 s = convertUsingRecycledSprintf(x, precision);
0.01 2324 188 forceWidth = 0;
0.02 2324 189 f = '';
190 else
191 floatFieldExtra = 6;
192 s = '';
193 forceWidth = precision+floatFieldExtra;
194 f = sprintf('%%.%dg', precision);
195 end
2324 196 end

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