This is a static copy of a profile reportHome
imresize>fixupScale (82820 calls, 2.103 sec)
Generated 05-Nov-2014 07:53:35 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/imresize.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
668 | if ~isempty(scale_in) &&am... | 82820 | 0.371 s | 17.6% |  |
670 | else | 82820 | 0.300 s | 14.3% |  |
672 | end | 82820 | 0.290 s | 13.8% |  |
671 | scale = scale_in; | 82820 | 0.260 s | 12.4% |  |
All other lines | | | 0.881 s | 41.9% |  |
Totals | | | 2.103 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 8 |
Non-code lines (comments, blank lines) | 3 |
Code lines (lines that can run) | 5 |
Code lines that did run | 4 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 80.00 % |
Function listing
time calls line
665 function scale = fixupScale(scale_in)
666 % If the input is a scalar, turn it into a two-element vector.
667
0.37 82820 668 if ~isempty(scale_in) && isscalar(scale_in)
669 scale = [scale_in scale_in];
0.30 82820 670 else
0.26 82820 671 scale = scale_in;
0.29 82820 672 end
Other subfunctions in this file are not included in this listing.