This is a static copy of a profile report

Home

imresize>findMethodArg (82820 calls, 18.395 sec)
Generated 05-Nov-2014 07:53:29 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>parseInputssubfunction82820
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
281
if isMethodString(arg)
828209.553 s51.9%
280
if ischar(arg)
2484602.033 s11.1%
279
arg = varargin{k};
2484601.883 s10.2%
278
for k = 1:nargin
828201.422 s7.7%
291
elseif iscell(arg)
1656400.611 s3.3%
All other lines  2.894 s15.7%
Totals  18.395 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
imresize>isMethodStringsubfunction828208.552 s46.5%
Self time (built-ins, overhead, etc.)  9.844 s53.5%
Totals  18.395 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function23
Non-code lines (comments, blank lines)8
Code lines (lines that can run)15
Code lines that did run9
Code lines that did not run6
Coverage (did run/can run)60.00 %
Function listing
   time   calls  line
273 function idx = findMethodArg(varargin)
274 % Find the location of the method argument, if it exists, before the
275 % param-value pairs. If not found, return [].
276
0.51 82820 277 idx = [];
1.42 82820 278 for k = 1:nargin
1.88 248460 279 arg = varargin{k};
2.03 248460 280 if ischar(arg)
9.55 82820 281 if isMethodString(arg)
0.23 82820 282 idx = k;
0.46 82820 283 break;
284
285 else
286 % If this argument is a string but is not a method string, it
287 % must be a parameter string.
288 break;
289 end
290
0.61 165640 291 elseif iscell(arg)
292 idx = k;
293 break;
294 end
0.52 165640 295 end

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