This is a static copy of a profile reportHome
reduceData>setRunFlags (1 call, 0.000 sec)
Generated 05-Aug-2011 13:01:26 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
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
514 | return; | 1 | 0 s | 0% |  |
508 | if(plotparams.interactive==1 &... | 1 | 0 s | 0% |  |
502 | if(plotparams.interactive == 1... | 1 | 0 s | 0% |  |
497 | plotparams.interactive = par.i... | 1 | 0 s | 0% |  |
496 | if(checkpar(par, 'interactive'... | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
reduceData>checkpar | subfunction | 4 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Code Analyzer results
Line number | Message |
502 | Use && instead of & as the AND operator in (scalar) conditional statements. |
508 | Use && instead of & as the AND operator in (scalar) conditional statements. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 39 |
Non-code lines (comments, blank lines) | 9 |
Code lines (lines that can run) | 30 |
Code lines that did run | 11 |
Code lines that did not run | 19 |
Coverage (did run/can run) | 36.67 % |
Function listing
time calls line
476 function [plotparams, autorun]=setRunFlags(par)
477
1 478 if (checkpar(par,'plotflag'))
1 479 plotparams.plot = par.plotflag.flag;
480 else
481 plotparams.plot = 1;
482 end
483
1 484 if (checkpar(par,'autorun'))
1 485 autorun=par.autorun.flag;
486 else
487 autorun=0;
488 end
489
1 490 if(checkpar(par, 'saveplot'))
1 491 plotparams.save = par.saveplot.flag;
492 else
493 plotparams.save = 0;
494 end
495
1 496 if(checkpar(par, 'interactive'))
1 497 plotparams.interactive = par.interactive.flag;
498 else
499 plotparams.interactive = 1;
500 end
501
1 502 if(plotparams.interactive == 1 & plotparams.plot == 0)
503 display('Warning: must be plot enabled in interactive mode');
504 display('Setting plotting to true');
505 plotparams.plot = 1;
506 end
507
1 508 if(plotparams.interactive==1 & plotparams.save ==1)
509 display('Warning: can not save plots in interactive mode');
510 plotparams.save = 0;
511 end
512
513
1 514 return;
Other subfunctions in this file are not included in this listing.