This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
281 | if isMethodString(arg) | 82820 | 9.553 s | 51.9% |  |
280 | if ischar(arg) | 248460 | 2.033 s | 11.1% |  |
279 | arg = varargin{k}; | 248460 | 1.883 s | 10.2% |  |
278 | for k = 1:nargin | 82820 | 1.422 s | 7.7% |  |
291 | elseif iscell(arg) | 165640 | 0.611 s | 3.3% |  |
All other lines | | | 2.894 s | 15.7% |  |
Totals | | | 18.395 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
imresize>isMethodString | subfunction | 82820 | 8.552 s | 46.5% |  |
Self time (built-ins, overhead, etc.) | | | 9.844 s | 53.5% |  |
Totals | | | 18.395 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 23 |
Non-code lines (comments, blank lines) | 8 |
Code lines (lines that can run) | 15 |
Code lines that did run | 9 |
Code lines that did not run | 6 |
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.