This is a static copy of a profile report

Home

framecut>framecutSub (206 calls, 1.935 sec)
Generated 05-Aug-2011 13:01:01 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/framecut.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
framecutfunction9
framecut>framecutSubsubfunction197
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
56
eval(sprintf('d.%s=regcut(d.%s...
2071.377 s71.2%
54
eval(sprintf('thisSize = size(...
9320.153 s7.9%
58
eval(sprintf('d.%s=regcut(d.%s...
5550.131 s6.8%
51
if(eval(sprintf('isstruct(d.%s...
11290.120 s6.2%
60
eval(sprintf('d.%s=regcut(d.%s...
1700.077 s4.0%
All other lines  0.077 s4.0%
Totals  1.935 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
framecut>regcutsubfunction9321.432 s74.0%
framecut>framecutSubsubfunction1970 s0%
Self time (built-ins, overhead, etc.)  0.503 s26.0%
Totals  1.935 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function21
Non-code lines (comments, blank lines)3
Code lines (lines that can run)18
Code lines that did run15
Code lines that did not run3
Coverage (did run/can run)83.33 %
Function listing
   time   calls  line
47 function d = framecutSub(d, indRx, indServ, indReg)
48
206 49 names=fieldnames(d);
206 50 for i=1:length(names)
0.12 1129 51 if(eval(sprintf('isstruct(d.%s)',names{i})))
0.04 197 52 eval(sprintf('d.%s=framecutSub(d.%s,indRx, indServ, indReg);',names{i},names{i}));
0.01 932 53 else
0.15 932 54 eval(sprintf('thisSize = size(d.%s,1);', names{i}));
932 55 if(thisSize == length(indRx))
1.38 207 56 eval(sprintf('d.%s=regcut(d.%s,indRx);',names{i},names{i}));
725 57 elseif(thisSize == length(indReg))
0.13 555 58 eval(sprintf('d.%s=regcut(d.%s,indReg);',names{i},names{i}));
170 59 elseif(thisSize == length(indServ))
0.08 170 60 eval(sprintf('d.%s=regcut(d.%s,indServ);',names{i},names{i}));
61 else
62 error('Do not know which dimension to cut over');
63 end
932 64 end
1129 65 end
66
206 67 return

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