This is a static copy of a profile report

Home

imresize>isPureNearestNeighborComputation (331280 calls, 7.090 sec)
Generated 05-Nov-2014 07:53:49 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)

Function NameFunction TypeCalls
imresizefunction165640
imresize>resizeAlongDimsubfunction165640
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
779
tf = one_weight_per_pixel &...
3312802.724 s38.4%
778
one_weight_per_pixel = size(we...
3312801.122 s15.8%
All other lines  3.244 s45.8%
Totals  7.090 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function7
Non-code lines (comments, blank lines)5
Code lines (lines that can run)2
Code lines that did run2
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
773 function tf = isPureNearestNeighborComputation(weights)
774 % True if there is only one column of weights, and if the weights are
775 % all one. For this case, the resize can be done using a quick
776 % indexing operation.
777
1.12 331280 778 one_weight_per_pixel = size(weights, 2) == 1;
2.72 331280 779 tf = one_weight_per_pixel && all(weights == 1);

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