This is a static copy of a profile reportHome
makeresampler>GetCanonicalString (3442 calls, 1.252 sec)
Generated 05-Nov-2014 07:52:59 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/makeresampler.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 |
445 | imatch = strmatch(lower(input_... | 3442 | 1.132 s | 90.4% |  |
452 | if nmatch > 1 | 3442 | 0.030 s | 2.4% |  |
446 | nmatch = length(imatch); | 3442 | 0.020 s | 1.6% |  |
456 | canonical_string = canonical_s... | 3442 | 0.010 s | 0.8% |  |
448 | if nmatch == 0 | 3442 | 0.010 s | 0.8% |  |
All other lines | | | 0.050 s | 4.0% |  |
Totals | | | 1.252 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
cell.strmatch | function | 3442 | 1.071 s | 85.6% |  |
Self time (built-ins, overhead, etc.) | | | 0.180 s | 14.4% |  |
Totals | | | 1.252 s | 100% | |
Code Analyzer results
Line number | Message |
445 | STRMATCH will be removed in a future release. Use STRNCMP instead. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 19 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 12 |
Code lines that did run | 6 |
Code lines that did not run | 6 |
Coverage (did run/can run) | 50.00 % |
Function listing
time calls line
438 function canonical_string = GetCanonicalString(...
439 input_string, property_name, canonical_strings)
440
3442 441 if ~ischar(input_string)
442 error(message('images:makeresampler:invalidPropertyName', property_name))
443 end
444
1.13 3442 445 imatch = strmatch(lower(input_string),canonical_strings);
0.02 3442 446 nmatch = length(imatch);
447
0.01 3442 448 if nmatch == 0
449 error(message('images:makeresampler:unknownPropertyName', property_name, input_string))
450 end
451
0.03 3442 452 if nmatch > 1
453 error(message('images:makeresampler:ambiguousPropertyValue', property_name, input_string))
454 end
455
0.01 3442 456 canonical_string = canonical_strings{imatch};
Other subfunctions in this file are not included in this listing.