This is a static copy of a profile report

Home

imresize>scaleOrSize (82820 calls, 4.646 sec)
Generated 05-Nov-2014 07:52:48 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
imresize>parsePreMethodArgssubfunction82820
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
377
iptcheckinput(arg, {'numeric'}...
828202.113 s45.5%
379
output_size = double(arg);
828200.541 s11.6%
366
scale = [];
828200.270 s5.8%
367
output_size = [];
828200.260 s5.6%
375
elseif isnumeric(arg) &&am...
828200.230 s5.0%
All other lines  1.232 s26.5%
Totals  4.646 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
iptcheckinputMEX-file828200.601 s12.9%
Self time (built-ins, overhead, etc.)  4.046 s87.1%
Totals  4.646 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function21
Non-code lines (comments, blank lines)10
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
363 function [scale, output_size] = scaleOrSize(arg, position)
364 % Determine whether ARG is the scale factor or the output size.
365
0.27 82820 366 scale = [];
0.26 82820 367 output_size = [];
368
0.23 82820 369 if isnumeric(arg) && isscalar(arg)
370 % Argument looks like a scale factor.
371 iptcheckinput(arg, {'numeric'}, {'nonzero', 'real'}, mfilename, 'SCALE', ...
372 position);
373 scale = double(arg);
374
0.23 82820 375 elseif isnumeric(arg) && isvector(arg) && (numel(arg) == 2)
376 % Argument looks like output_size.
2.11 82820 377 iptcheckinput(arg, {'numeric'}, {'vector', 'real', 'positive'}, ...
378 mfilename, '[MROWS NCOLS]', position);
0.54 82820 379 output_size = double(arg);
380
381 else
382 error(message('images:imresize:badScaleOrSize'));
383 end

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