This is a static copy of a profile report

Home

readScript>interpret (21 calls, 0.044 sec)
Generated 05-Aug-2011 13:01:14 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/support/readScript.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
readScriptfunction21
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
132
[par,q]=getnumval(par,list,typ...
180.011 s25.0%
130
[par,q]= getSingleStrVal(par, ...
20.011 s25.0%
128
[par,q]=getstrval(par,list,typ...
10.011 s25.0%
111
f=regexpi(lin,':');
210.011 s25.0%
133
end
180 s0%
All other lines  0 s0%
Totals  0.044 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
readScript>getstrvalsubfunction10.011 s25.0%
readScript>getSingleStrValsubfunction20.011 s25.0%
readScript>getnumvalsubfunction180.011 s25.0%
readScript>isstrvalsubfunction410 s0%
readScript>parlistsubfunction420 s0%
Self time (built-ins, overhead, etc.)  0.011 s25.0%
Totals  0.044 s100% 
Code Analyzer results
Line numberMessage
113To improve performance, use logical indexing instead of FIND.
Coverage results
[ Show coverage for parent directory ]
Total lines in function28
Non-code lines (comments, blank lines)10
Code lines (lines that can run)18
Code lines that did run12
Code lines that did not run6
Coverage (did run/can run)66.67 %
Function listing
   time   calls  line
106 function [par,q]=interpret(par,lin)
107
108
109 % find matching cal type
21 110 caltype=parlist('caltype');
0.01 21 111 f=regexpi(lin,':');
112
21 113 type=caltype{find(strcmp(lin(1:f-1),caltype))};
21 114 if (isempty(type))
115 disp('Unknown calibration type detected in script file')
116 disp('Script will be ignored')
117 q=0;
118 par=[];
119 return
120 end
121
122 % get parameter list for cal type
21 123 list=parlist(type);
124
125
126 % there two types of inputs, numerical or string
21 127 if (isstrval(list)==1)
0.01 1 128 [par,q]=getstrval(par,list,type,lin(f+1:end));
20 129 elseif(isstrval(list)==2)
0.01 2 130 [par,q]= getSingleStrVal(par, list, type, lin(f+1:end));
18 131 else
0.01 18 132 [par,q]=getnumval(par,list,type,lin(f+1:end));
18 133 end

Other subfunctions in this file are not included in this listing.