This is a static copy of a profile reportHome
imresize>isMethodString (82820 calls, 8.552 sec)
Generated 05-Nov-2014 07:53:26 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 |
444 | valid_method_strings = getMeth... | 82820 | 4.937 s | 57.7% |  |
446 | num_matches = sum(strncmpi(in,... | 82820 | 1.021 s | 11.9% |  |
447 | tf = num_matches == 1; | 82820 | 0.711 s | 8.3% |  |
448 | end | 82820 | 0.591 s | 6.9% |  |
440 | if ~ischar(in) | 82820 | 0.250 s | 2.9% |  |
All other lines | | | 1.041 s | 12.2% |  |
Totals | | | 8.552 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
imresize>getMethodInfo | subfunction | 82820 | 4.096 s | 47.9% |  |
Self time (built-ins, overhead, etc.) | | | 4.456 s | 52.1% |  |
Totals | | | 8.552 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 12 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 7 |
Code lines that did run | 6 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 85.71 % |
Function listing
time calls line
437 function tf = isMethodString(in)
438 % Returns true if the input is the name of a method.
439
0.25 82820 440 if ~ischar(in)
441 tf = false;
442
0.17 82820 443 else
4.94 82820 444 valid_method_strings = getMethodInfo();
445
1.02 82820 446 num_matches = sum(strncmpi(in, valid_method_strings, numel(in)));
0.71 82820 447 tf = num_matches == 1;
0.59 82820 448 end
Other subfunctions in this file are not included in this listing.