This is a static copy of a profile reportHome
reduceData>matchRev (1 call, 0.033 sec)
Generated 05-Aug-2011 13:00:29 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/reduceData.m
Copy to new window for comparing multiple runs
Parents (calling functions)
| Function Name | Function Type | Calls |
| reduceData | function | 1 |
Lines where the most time was spent
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 380 | if (searchStruct(parm,{'rev','... | 1 | 0.033 s | 100.0% |  |
| 403 | return; | 1 | 0 s | 0% |  |
| 401 | end | 1 | 0 s | 0% |  |
| 396 | if (~q) | 1 | 0 s | 0% |  |
| 395 | q=version==floor(str2num(rev))... | 1 | 0 s | 0% |  |
| All other lines | | | 0 s | 0% |  |
| Totals | | | 0.033 s | 100% | |
Children (called functions)
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| searchStruct | function | 1 | 0.022 s | 66.7% |  |
| str2num | function | 1 | 0 s | 0% |  |
| Self time (built-ins, overhead, etc.) | | | 0.011 s | 33.3% |  |
| Totals | | | 0.033 s | 100% | |
Code Analyzer results
| Line number | Message |
| 395 | STR2DOUBLE is faster than STR2NUM; however, STR2DOUBLE operates only on scalars. Use the function that best suits your needs. |
| 397 | DISP(SPRINTF(...)) can usually be replaced by FPRINTF(...). |
Coverage results
[ Show coverage for parent directory ]
| Total lines in function | 27 |
| Non-code lines (comments, blank lines) | 7 |
| Code lines (lines that can run) | 20 |
| Code lines that did run | 8 |
| Code lines that did not run | 12 |
| Coverage (did run/can run) | 40.00 % |
Function listing
time calls line
377 function q=matchRev(parm,rev)
378
379
0.03 1 380 if (searchStruct(parm,{'rev','version'}))
381 % compare only major number
1 382 version=floor(parm.rev.version);
383 else
384 version=NaN;
385 end
386
1 387 if (isnan(version))
388 disp(' ')
389 disp('Script require unknown REV')
390 disp('Continuing....')
391 q=1;
392 pause(1)
393 return
1 394 else
1 395 q=version==floor(str2num(rev));
1 396 if (~q)
397 disp(sprintf('Script requires Redrum Major Version %s',...
398 num2str(version)));
399 pause(1)
400 end
1 401 end
402
1 403 return;
Other subfunctions in this file are not included in this listing.