This is a static copy of a profile report

Home

readScript>getstrval (1 call, 0.011 sec)
Generated 05-Aug-2011 13:01:16 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
readScript>interpretsubfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
151
end
160.011 s100.0%
166
q=1;
10 s0%
165
eval(sprintf('par.%s.%s=str;',...
10 s0%
164
if (all(isGood))
10 s0%
154
if(~any(strcmp('alpha', str)))
10 s0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
readScript>getkeysubfunction10 s0%
findspacesfunction10 s0%
Self time (built-ins, overhead, etc.)  0.011 s100.0%
Totals  0.011 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function37
Non-code lines (comments, blank lines)12
Code lines (lines that can run)25
Code lines that did run11
Code lines that did not run14
Coverage (did run/can run)44.00 %
Function listing
   time   calls  line
137 function [par,q]=getstrval(par,list,type,str)
138
139 % get each individual inputs from str
1 140 str=findspaces(str);
141
142 % check that string all strings in str are in key
1 143 key=sort(getkey(list));
1 144 isGood = zeros(size(str));
1 145 for m=1:length(str)
16 146 if(any(strcmp(str(m), key)))
16 147 isGood(m) = 1;
148 else
149 isGood(m) = 0;
150 end
0.01 16 151 end
152
153
1 154 if(~any(strcmp('alpha', str)))
155 display('You must run some form of alpha correction');
156 display('To put the data in the correct format');
157 isGood(:) = 0;
158 end
159
160
161
162
163 % check that all
1 164 if (all(isGood))
1 165 eval(sprintf('par.%s.%s=str;',type,list{1}));
1 166 q=1;
167 else
168 disp('Parameter list values does not match those')
169 disp('given in the script file')
170 disp('routines listed are incorrect or mispelled');
171 disp('SCRIPT WILL BE IGNORED');
172 q=0; par=[];
173 end

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